summaryrefslogtreecommitdiff
path: root/Lib/test/test_new.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_new.py')
-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 30433aefb1..6ea7707d2c 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