[Zope3-checkins] SVN: Zope3/trunk/ut.py Changed unit test template to call

Marius Gedminas marius at pov.lt
Wed Feb 16 11:23:39 EST 2005


Log message for revision 29161:
  Changed unit test template to call
  
      unittest.main(defaultTest='test_suite')
  
  instead of
  
      unittest.main()
  
  The primary reason is that unittest.main() will not know about any doctests you
  might include in your test_suite function.
  
  

Changed:
  U   Zope3/trunk/ut.py

-=-
Modified: Zope3/trunk/ut.py
===================================================================
--- Zope3/trunk/ut.py	2005-02-16 14:59:32 UTC (rev 29160)
+++ Zope3/trunk/ut.py	2005-02-16 16:23:39 UTC (rev 29161)
@@ -60,4 +60,4 @@
 
 
 if __name__ == '__main__':
-    unittest.main()
+    unittest.main(defaultTest='test_suite')



More information about the Zope3-Checkins mailing list