From f317a18a4ac6bcdd9b31295af04d27b549c4126a Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 22 Jan 2001 14:51:41 +0000 Subject: [PATCH] Finn Bock (SF patch #103345): Avoid outdated exec form in test_class.py. --- Lib/test/test_class.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py index b863152692f..fcfc24be34e 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()