]> granicus.if.org Git - python/commitdiff
Moved a print statement outside the jython platform test. Otherwise
authorFinn Bock <bckfnn@worldonline.dk>
Sun, 9 Dec 2001 10:19:25 +0000 (10:19 +0000)
committerFinn Bock <bckfnn@worldonline.dk>
Sun, 9 Dec 2001 10:19:25 +0000 (10:19 +0000)
the output fails to compare correctly for jython. This change was part
of the original patch #403666.

Lib/test/test_new.py

index ab5eedec47f48d9252743f656cce6a39ea0f168c..641d9c2b0d19097a2fb9e763ca1953dcaa16f1e0 100644 (file)
@@ -71,10 +71,10 @@ func()
 verify(g['c'] == 3,
        'Could not create a proper function object')
 
+print 'new.code()'
 # bogus test of new.code()
 # Note: Jython will never have new.code()
 if hasattr(new, 'code'):
-    print 'new.code()'
     d = new.code(3, 3, 3, 3, codestr, (), (), (),
                  "<string>", "<name>", 1, "", (), ())
     # test backwards-compatibility version with no freevars or cellvars