[Python-checkins] python/dist/src/Lib unittest.py,1.34,1.35
dcjim at users.sourceforge.net
dcjim at users.sourceforge.net
Sat Aug 28 17:22:15 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23211/Lib
Modified Files:
unittest.py
Log Message:
Added an __iter__ method for test suites.
Index: unittest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/unittest.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- unittest.py 12 Feb 2004 17:35:07 -0000 1.34
+++ unittest.py 28 Aug 2004 15:22:12 -0000 1.35
@@ -400,6 +400,9 @@
__str__ = __repr__
+ def __iter__(self):
+ return iter(self._tests)
+
def countTestCases(self):
cases = 0
for test in self._tests:
More information about the Python-checkins
mailing list