blob: b7842f99b65e29e8fc07946dfb6fd5a5f8bb9332 [file] [log] [blame]
Andrew MacIntyre5cef5712002-02-24 05:32:32 +00001# this test has a malloc problem on OS/2+EMX, so skip test in that environment
2
3import sys
Jack Jansene89f1282002-03-15 13:50:54 +00004from test_support import TestFailed, TestSkipped
Andrew MacIntyre5cef5712002-02-24 05:32:32 +00005
Fred Drake33438d22000-08-24 00:35:38 +00006REPS = 65580
Jeremy Hylton3c0d0132000-06-20 19:13:27 +00007
Jack Jansene89f1282002-03-15 13:50:54 +00008if sys.platform == 'mac':
Tim Peters863ac442002-04-16 01:38:40 +00009 import gestalt
10 if gestalt.gestalt('sysv') > 0x9ff:
11 raise TestSkipped, 'Triggers pathological malloc slowdown on OSX MacPython'
Andrew MacIntyre5cef5712002-02-24 05:32:32 +000012if sys.platform == "os2emx":
13 raise TestFailed, "OS/2+EMX port has malloc problems with long expressions"
14else:
15 l = eval("[" + "2," * REPS + "]")
16 print len(l)