summaryrefslogtreecommitdiff
path: root/Lib/test/test_longexp.py
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-24 05:32:32 +0000
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-24 05:32:32 +0000
commit5cef57131fc02de55133e4eafdee27fb76456bb8 (patch)
treed22cd58c3f46b5c3564d283eeb8965197b15bb93 /Lib/test/test_longexp.py
parent75a8e65873f8c73f27f353b30bb1de5aceb6b74c (diff)
downloadcpython-git-5cef57131fc02de55133e4eafdee27fb76456bb8.tar.gz
OS/2 EMX port Library and regression test changes:
Lib/ os.py os2emxpath.py // added - OS/2 EMX specific path manipulation routines popen2.py site.py Lib/test/ test_fcntl.py test_longexp.py
Diffstat (limited to 'Lib/test/test_longexp.py')
-rw-r--r--Lib/test/test_longexp.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/test/test_longexp.py b/Lib/test/test_longexp.py
index 243b28a38b..8abb6db6d1 100644
--- a/Lib/test/test_longexp.py
+++ b/Lib/test/test_longexp.py
@@ -1,4 +1,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
-l = eval("[" + "2," * REPS + "]")
-print len(l)
+if sys.platform == "os2emx":
+ raise TestFailed, "OS/2+EMX port has malloc problems with long expressions"
+else:
+ l = eval("[" + "2," * REPS + "]")
+ print len(l)