Andrew MacIntyre | 5cef571 | 2002-02-24 05:32:32 +0000 | [diff] [blame] | 1 | # this test has a malloc problem on OS/2+EMX, so skip test in that environment |
| 2 | |
| 3 | import sys |
Jack Jansen | e89f128 | 2002-03-15 13:50:54 +0000 | [diff] [blame^] | 4 | from test_support import TestFailed, TestSkipped |
Andrew MacIntyre | 5cef571 | 2002-02-24 05:32:32 +0000 | [diff] [blame] | 5 | |
Fred Drake | 33438d2 | 2000-08-24 00:35:38 +0000 | [diff] [blame] | 6 | REPS = 65580 |
Jeremy Hylton | 3c0d013 | 2000-06-20 19:13:27 +0000 | [diff] [blame] | 7 | |
Jack Jansen | e89f128 | 2002-03-15 13:50:54 +0000 | [diff] [blame^] | 8 | if sys.platform == 'mac': |
| 9 | import gestalt |
| 10 | if gestalt.gestalt('sysv') > 0x9ff: |
| 11 | raise TestSkipped, 'Triggers pathological malloc slowdown on OSX MacPython' |
Andrew MacIntyre | 5cef571 | 2002-02-24 05:32:32 +0000 | [diff] [blame] | 12 | if sys.platform == "os2emx": |
| 13 | raise TestFailed, "OS/2+EMX port has malloc problems with long expressions" |
| 14 | else: |
| 15 | l = eval("[" + "2," * REPS + "]") |
| 16 | print len(l) |