mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00

* use unittest.main() instead of run_unittest(test_suite()) to run tests from modules via the CLI * add explicit load_tests() to load doctests * use test.support.load_package_tests() to load tests in submodules of distutils.tests * removes no longer needed test_suite() functions
13 lines
278 B
Python
13 lines
278 B
Python
"""Tests harness for distutils.versionpredicate.
|
|
|
|
"""
|
|
|
|
import distutils.versionpredicate
|
|
import doctest
|
|
|
|
def load_tests(loader, tests, pattern):
|
|
tests.addTest(doctest.DocTestSuite(distutils.versionpredicate))
|
|
return tests
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|