[CMF-checkins] CVS: Products/CMFDefault/tests - test_all.py:1.7
Tres Seaver
tseaver@zope.com
Thu, 20 Sep 2001 12:52:01 -0400
Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv7461/CMFDefault/tests
Modified Files:
test_all.py
Log Message:
- Fix unit test drivers to work with Zope 2.4 / Python 2.1 (unittest
module no longer has JUnitTestTextRunner).
=== Products/CMFDefault/tests/test_all.py 1.6 => 1.7 ===
def run():
- unittest.JUnitTextTestRunner().run(test_suite())
+ if hasattr( unittest, 'JUnitTextTestRunner' ):
+ unittest.JUnitTextTestRunner().run( test_suite() )
+ else:
+ unittest.TextTestRunner( verbosity=0 ).run( test_suite() )
if __name__ == '__main__':
run()