[Python-checkins] python/dist/src/Lib/test test_support.py,1.57,1.58
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Tue, 15 Jul 2003 21:29:44 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv12603
Modified Files:
test_support.py
Log Message:
Extend last change to cover TestSuites as well as TestCases.
Index: test_support.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_support.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** test_support.py 16 Jul 2003 02:59:32 -0000 1.57
--- test_support.py 16 Jul 2003 04:29:42 -0000 1.58
***************
*** 252,256 ****
suite = unittest.TestSuite()
for cls in classes:
! if isinstance(cls, unittest.TestCase):
suite.addTest(cls)
else:
--- 252,256 ----
suite = unittest.TestSuite()
for cls in classes:
! if isinstance(cls, (unittest.TestSuite, unittest.TestCase)):
suite.addTest(cls)
else: