[Python-checkins] CVS: python/dist/src/Lib/test test_longexp.py,1.1,1.2
Fred L. Drake
python-dev@python.org
Wed, 23 Aug 2000 17:35:41 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv23314/Lib/test
Modified Files:
test_longexp.py
Log Message:
Charles G. Waldman <cgq@fnal.gov>:
Update the test suite for the changes introduced by the EXTENDED_ARG
opcode.
This closes the regression test changes of SourceForge patch #100893.
Index: test_longexp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_longexp.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_longexp.py 2000/06/20 19:13:27 1.1
--- test_longexp.py 2000/08/24 00:35:38 1.2
***************
*** 1,18 ****
! REPS = 8192
! try:
! eval("2+2+" * REPS + "+3.14159265")
! except SyntaxError, msg:
! print "Caught SyntaxError for long expression:", msg
! else:
! print "Long expression did not raise SyntaxError"
!
! ## This test prints "s_push: parser stack overflow" on stderr,
! ## which seems to confuse the test harness
! ##try:
! ## eval("(2+" * REPS + "0" + ")" * REPS)
! ##except SyntaxError:
! ## pass
! ##else:
! ## print "Deeply nested expression did not raised SyntaxError"
!
--- 1,4 ----
! REPS = 65580
! l = eval("[" + "2," * REPS + "]")
! print len(l)