From: Guido van Rossum Date: Mon, 22 Jan 2001 14:51:41 +0000 (+0000) Subject: Finn Bock (SF patch #103345): Avoid outdated exec form in X-Git-Tag: v2.1a1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f317a18a4ac6bcdd9b31295af04d27b549c4126a;p=python Finn Bock (SF patch #103345): Avoid outdated exec form in test_class.py. --- diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py index b863152692..fcfc24be34 100644 --- a/Lib/test/test_class.py +++ b/Lib/test/test_class.py @@ -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()