From: Jack Jansen Date: Fri, 15 Mar 2002 13:50:54 +0000 (+0000) Subject: Skip test_longexp for MacPython on Mac OS X. It triggers a pathological realloc slowd... X-Git-Tag: v2.3c1~6485 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e89f128a604d157254a873b4901b83f97272a999;p=thirdparty%2FPython%2Fcpython.git Skip test_longexp for MacPython on Mac OS X. It triggers a pathological realloc slowdown. Some tests with shorter expressions lead me to the conclusion that it will eventually finish, but it may take a few weeks:-) 2.2.1 candidate. --- diff --git a/Lib/test/test_longexp.py b/Lib/test/test_longexp.py index 8abb6db6d15a..00ece6d240f3 100644 --- a/Lib/test/test_longexp.py +++ b/Lib/test/test_longexp.py @@ -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: