]> granicus.if.org Git - python/commitdiff
Finn Bock (SF patch #103345): Avoid outdated exec form in
authorGuido van Rossum <guido@python.org>
Mon, 22 Jan 2001 14:51:41 +0000 (14:51 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 22 Jan 2001 14:51:41 +0000 (14:51 +0000)
test_class.py.

Lib/test/test_class.py

index b863152692f58d60babdb2c2eb8169bcaf098d67..fcfc24be34e0c4d2b470c60d1b33b0cd2977c4a7 100644 (file)
@@ -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()