Index: test_class.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_class.py,v retrieving revision 1.4 diff -u -r1.4 test_class.py --- test_class.py 2001/01/18 23:47:15 1.4 +++ test_class.py 2001/01/21 13:36:36 @@ -87,9 +87,9 @@ 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()