[Python-checkins] python/dist/src/Lib/test test_longexp.py,1.7,1.8

aimacintyre@users.sourceforge.net aimacintyre@users.sourceforge.net
Mon, 15 Jul 2002 05:03:21 -0700


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

Modified Files:
	test_longexp.py 
Log Message:
Tim_one's change to aggressively overallocate nodes when adding child 
nodes (in Parser/node.c) resolves the gross memory consumption 
exhibited by the EMX runtime on OS/2, so the test should be exercised 
on this platform.


Index: test_longexp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_longexp.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_longexp.py	8 Jul 2002 10:07:25 -0000	1.7
--- test_longexp.py	15 Jul 2002 12:03:19 -0000	1.8
***************
*** 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, TestSkipped
  
  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)
--- 1,5 ----
  
  REPS = 65580
  
! l = eval("[" + "2," * REPS + "]")
! print len(l)