mirror of https://github.com/python/cpython.git
note a really bad test (no time to fix now)
This commit is contained in:
parent
b25aa36f83
commit
84a7f0077c
|
@ -99,6 +99,7 @@ def test_closure(func, closure, exc):
|
||||||
# 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'):
|
||||||
|
# XXX should use less criminally bogus arguments!
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue