summaryrefslogtreecommitdiff
path: root/Lib/test/test_longexp.py
blob: 8abb6db6d15ae6ca8fcac46fa4c9f0a57ae07b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# this test has a malloc problem on OS/2+EMX, so skip test in that environment

import sys
from test_support import TestFailed

REPS = 65580

if sys.platform == "os2emx":
    raise TestFailed, "OS/2+EMX port has malloc problems with long expressions"
else:
    l = eval("[" + "2," * REPS + "]")
    print len(l)