mirror of
https://github.com/python/cpython.git
synced 2025-11-11 11:01:39 +00:00
Finn Bock (SF patch #103345): Avoid outdated exec form in
test_class.py.
This commit is contained in:
parent
ed79548a84
commit
f317a18a4a
1 changed files with 2 additions and 2 deletions
|
|
@ -87,9 +87,9 @@ def __cmp__(self, *args):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
for method in testmeths:
|
for method in testmeths:
|
||||||
exec("""def __%(method)s__(self, *args):
|
exec """def __%(method)s__(self, *args):
|
||||||
print "__%(method)s__:", args
|
print "__%(method)s__:", args
|
||||||
"""%locals(), AllTests.__dict__);
|
"""%locals() in AllTests.__dict__
|
||||||
|
|
||||||
# this also tests __init__ of course.
|
# this also tests __init__ of course.
|
||||||
testme = AllTests()
|
testme = AllTests()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue