]> granicus.if.org Git - python/commitdiff
Correct a comment about testing methods - nowadays most
authorGeorg Brandl <georg@python.org>
Fri, 9 Nov 2007 17:33:23 +0000 (17:33 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 9 Nov 2007 17:33:23 +0000 (17:33 +0000)
tests don't run directly on import.

Lib/test/regrtest.py

index 0fa4c61b4c84d0cf924740a53c90647878aa6852..7973b2359054a7dbf5b795c75f8939d62d411052 100755 (executable)
@@ -548,10 +548,9 @@ def runtest_inner(test, generate, verbose, quiet,
                 abstest = 'test.' + test
             the_package = __import__(abstest, globals(), locals(), [])
             the_module = getattr(the_package, test)
-            # Most tests run to completion simply as a side-effect of
-            # being imported.  For the benefit of tests that can't run
-            # that way (like test_threaded_import), explicitly invoke
-            # their test_main() function (if it exists).
+            # Old tests run to completion simply as a side-effect of
+            # being imported.  For tests based on unittest or doctest,
+            # explicitly invoke their test_main() function (if it exists).
             indirect_test = getattr(the_module, "test_main", None)
             if indirect_test is not None:
                 indirect_test()