diff options
author | Guido van Rossum <guido@python.org> | 2001-01-22 14:51:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-22 14:51:41 (GMT) |
commit | f317a18a4ac6bcdd9b31295af04d27b549c4126a (patch) | |
tree | 5997021ab83b37e03338652ab1764474b76a12fa /Lib/test/test_class.py | |
parent | ed79548a842af2d249cf369c16f9f440c4fd18da (diff) | |
download | cpython-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/test/test_class.py')
-rw-r--r-- | Lib/test/test_class.py | 4 |
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() |