[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner.py Docstrings are good.

Marius Gedminas marius at pov.lt
Fri Jul 13 05:02:56 EDT 2007


Log message for revision 77809:
  Docstrings are good.
  
  

Changed:
  U   zope.testing/trunk/src/zope/testing/testrunner.py

-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner.py	2007-07-13 09:01:50 UTC (rev 77808)
+++ zope.testing/trunk/src/zope/testing/testrunner.py	2007-07-13 09:02:55 UTC (rev 77809)
@@ -1195,7 +1195,16 @@
                 yield suite
                 break
 
+
 def check_suite(suite, module_name):
+    """Check for bad tests in a test suite.
+
+    "Bad tests" are those that do not inherit from unittest.TestCase.
+
+    Note that this function is pointless on Python 2.5, because unittest itself
+    checks for this in TestSuite.addTest.  It is, however, useful on earlier
+    Pythons.
+    """
     for x in suite:
         if isinstance(x, unittest.TestSuite):
             check_suite(x, module_name)



More information about the Zope3-Checkins mailing list