[CMF-checkins] CVS: Products/CMFWiki/tests - test_all.py:1.2
Tres Seaver
tseaver@zope.com
Thu, 20 Sep 2001 12:51:32 -0400
Update of /cvs-repository/Products/CMFWiki/tests
In directory cvs.zope.org:/tmp/cvs-serv7461/CMFWiki/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/CMFWiki/tests/test_all.py 1.1 => 1.2 ===
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()