]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Skip test_longexp for MacPython on Mac OS X. It triggers a pathological realloc slowd...
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 15 Mar 2002 13:50:54 +0000 (13:50 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 15 Mar 2002 13:50:54 +0000 (13:50 +0000)
2.2.1 candidate.

Lib/test/test_longexp.py

index 8abb6db6d15ae6ca8fcac46fa4c9f0a57ae07b02..00ece6d240f3204987733adf377cbcce29efe08b 100644 (file)
@@ -1,10 +1,14 @@
 # this test has a malloc problem on OS/2+EMX, so skip test in that environment
 
 import sys
-from test_support import TestFailed
+from test_support import TestFailed, TestSkipped
 
 REPS = 65580
 
+if sys.platform == 'mac':
+       import gestalt
+       if gestalt.gestalt('sysv') > 0x9ff:
+               raise TestSkipped, 'Triggers pathological malloc slowdown on OSX MacPython'
 if sys.platform == "os2emx":
     raise TestFailed, "OS/2+EMX port has malloc problems with long expressions"
 else: