From: Toshio Kuratomi Date: Mon, 27 Jan 2020 12:08:39 +0000 (-0800) Subject: Fix so that test.test_distutils can be executed by unittest and not just regrtest... X-Git-Tag: v3.9.0a4~211 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=997443c14cc29e5616b9f3d7c337e89fda60de11;p=thirdparty%2FPython%2Fcpython.git Fix so that test.test_distutils can be executed by unittest and not just regrtest (GH-13480) --- diff --git a/Lib/test/test_distutils.py b/Lib/test/test_distutils.py index d613abe453b5..a37f11791754 100644 --- a/Lib/test/test_distutils.py +++ b/Lib/test/test_distutils.py @@ -10,9 +10,15 @@ import test.support def test_main(): + # used by regrtest test.support.run_unittest(distutils.tests.test_suite()) test.support.reap_children() +def load_tests(*_): + # used by unittest + return distutils.tests.test_suite() + + if __name__ == "__main__": test_main()