[Python-checkins] CVS: python/dist/src/Lib/test test_class.py,1.4,1.5
Guido van Rossum
gvanrossum@users.sourceforge.net
Mon, 22 Jan 2001 06:51:44 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv26342
Modified Files:
test_class.py
Log Message:
Finn Bock (SF patch #103345): Avoid outdated exec form in
test_class.py.
Index: test_class.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_class.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** test_class.py 2001/01/18 23:47:15 1.4
--- test_class.py 2001/01/22 14:51:41 1.5
***************
*** 88,94 ****
for method in testmeths:
! exec("""def __%(method)s__(self, *args):
print "__%(method)s__:", args
! """%locals(), AllTests.__dict__);
# this also tests __init__ of course.
--- 88,94 ----
for method in testmeths:
! exec """def __%(method)s__(self, *args):
print "__%(method)s__:", args
! """%locals() in AllTests.__dict__
# this also tests __init__ of course.