mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +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 @@ class AllTests:
|
|||
return 0
|
||||
|
||||
for method in testmeths:
|
||||
exec("""def __%(method)s__(self, *args):
|
||||
exec """def __%(method)s__(self, *args):
|
||||
print "__%(method)s__:", args
|
||||
"""%locals(), AllTests.__dict__);
|
||||
"""%locals() in AllTests.__dict__
|
||||
|
||||
# this also tests __init__ of course.
|
||||
testme = AllTests()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue