blob: 00ece6d240f3204987733adf377cbcce29efe08b [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':
9 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)