Commit 920df3ac authored by Finn Bock's avatar Finn Bock

Moved a print statement outside the jython platform test. Otherwise

the output fails to compare correctly for jython. This change was part
of the original patch #403666.
parent 9857e28b
...@@ -71,10 +71,10 @@ func() ...@@ -71,10 +71,10 @@ func()
verify(g['c'] == 3, verify(g['c'] == 3,
'Could not create a proper function object') 'Could not create a proper function object')
print 'new.code()'
# bogus test of new.code() # bogus test of new.code()
# Note: Jython will never have new.code() # Note: Jython will never have new.code()
if hasattr(new, 'code'): if hasattr(new, 'code'):
print 'new.code()'
d = new.code(3, 3, 3, 3, codestr, (), (), (), d = new.code(3, 3, 3, 3, codestr, (), (), (),
"<string>", "<name>", 1, "", (), ()) "<string>", "<name>", 1, "", (), ())
# test backwards-compatibility version with no freevars or cellvars # test backwards-compatibility version with no freevars or cellvars
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment