summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-02-01 19:50:29 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-02-01 19:50:29 (GMT)
commit6fe0a82ecbd3bdbb028ae2041595bce3fd8b25fb (patch)
treeb8e59d9bd7f69f48313daecaf720ced8e628265c /Lib
parentdabed752ed2b35f5df0948ab4ee5cd99e9cb0272 (diff)
downloadcpython-6fe0a82ecbd3bdbb028ae2041595bce3fd8b25fb.zip
cpython-6fe0a82ecbd3bdbb028ae2041595bce3fd8b25fb.tar.gz
cpython-6fe0a82ecbd3bdbb028ae2041595bce3fd8b25fb.tar.bz2
move extra arguments to the back of the new.code() arglist
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_new.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_new.py b/Lib/test/test_new.py
index 30433ae..6ea7707 100644
--- a/Lib/test/test_new.py
+++ b/Lib/test/test_new.py
@@ -66,7 +66,10 @@ verify(g['c'] == 3,
# bogus test of new.code()
print 'new.code()'
-d = new.code(3, 3, 3, 3, codestr, (), (), (), (), (),
+d = new.code(3, 3, 3, 3, codestr, (), (), (),
+ "<string>", "<name>", 1, "", (), ())
+# test backwards-compatibility version with no freevars or cellvars
+d = new.code(3, 3, 3, 3, codestr, (), (), (),
"<string>", "<name>", 1, "")
if verbose:
print d