mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
ef8ace3a6f
commit
33438d23fa
|
@ -1,2 +1,2 @@
|
|||
test_longexp
|
||||
Caught SyntaxError for long expression: expression too long (line 1)
|
||||
65580
|
||||
|
|
|
@ -1,18 +1,4 @@
|
|||
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"
|
||||
REPS = 65580
|
||||
|
||||
l = eval("[" + "2," * REPS + "]")
|
||||
print len(l)
|
||||
|
|
Loading…
Reference in New Issue