Kaydet (Commit) f317a18a authored tarafından Guido van Rossum's avatar Guido van Rossum

Finn Bock (SF patch #103345): Avoid outdated exec form in

test_class.py.
üst ed79548a
...@@ -87,9 +87,9 @@ class AllTests: ...@@ -87,9 +87,9 @@ class AllTests:
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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment