diff options
author | Georg Brandl <georg@python.org> | 2007-11-09 17:33:23 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-11-09 17:33:23 (GMT) |
commit | 980c4fc04d82e650810a3111eea5c5b32f5883a6 (patch) | |
tree | d4f841b3c5b68155763e91086173dc024125cf0d | |
parent | 87426cb151202cac37f24aae43d73f5a80b11b1b (diff) | |
download | cpython-980c4fc04d82e650810a3111eea5c5b32f5883a6.zip cpython-980c4fc04d82e650810a3111eea5c5b32f5883a6.tar.gz cpython-980c4fc04d82e650810a3111eea5c5b32f5883a6.tar.bz2 |
Correct a comment about testing methods - nowadays most
tests don't run directly on import.
-rwxr-xr-x | Lib/test/regrtest.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 0fa4c61..7973b23 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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() |