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 |
| 4 | from test_support import TestFailed |
| 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 | |
Andrew MacIntyre | 5cef571 | 2002-02-24 05:32:32 +0000 | [diff] [blame^] | 8 | if sys.platform == "os2emx": |
| 9 | raise TestFailed, "OS/2+EMX port has malloc problems with long expressions" |
| 10 | else: |
| 11 | l = eval("[" + "2," * REPS + "]") |
| 12 | print len(l) |