[Python-checkins] CVS: python/dist/src/Lib/test test_longexp.py,1.4,1.5

Jack Jansen jackjansen@users.sourceforge.net
Fri, 15 Mar 2002 05:50:56 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv27686

Modified Files:
	test_longexp.py 
Log Message:
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.

Index: test_longexp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_longexp.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_longexp.py	24 Feb 2002 05:32:32 -0000	1.4
--- test_longexp.py	15 Mar 2002 13:50:54 -0000	1.5
***************
*** 2,9 ****
  
  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"
--- 2,13 ----
  
  import sys
! 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"