summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-22 14:51:41 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-22 14:51:41 (GMT)
commitf317a18a4ac6bcdd9b31295af04d27b549c4126a (patch)
tree5997021ab83b37e03338652ab1764474b76a12fa /Lib
parented79548a842af2d249cf369c16f9f440c4fd18da (diff)
downloadcpython-f317a18a4ac6bcdd9b31295af04d27b549c4126a.zip
cpython-f317a18a4ac6bcdd9b31295af04d27b549c4126a.tar.gz
cpython-f317a18a4ac6bcdd9b31295af04d27b549c4126a.tar.bz2
Finn Bock (SF patch #103345): Avoid outdated exec form in
test_class.py.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_class.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py
index b863152..fcfc24b 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()