diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-01 19:50:29 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-01 19:50:29 (GMT) |
commit | 6fe0a82ecbd3bdbb028ae2041595bce3fd8b25fb (patch) | |
tree | b8e59d9bd7f69f48313daecaf720ced8e628265c /Lib | |
parent | dabed752ed2b35f5df0948ab4ee5cd99e9cb0272 (diff) | |
download | cpython-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.py | 5 |
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 |