]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix so that test.test_distutils can be executed by unittest and not just regrtest...
authorToshio Kuratomi <a.badger@gmail.com>
Mon, 27 Jan 2020 12:08:39 +0000 (04:08 -0800)
committerCheryl Sabella <cheryl.sabella@gmail.com>
Mon, 27 Jan 2020 12:08:39 +0000 (07:08 -0500)
Lib/test/test_distutils.py

index d613abe453b56dde4f4e5b73db40f45638017757..a37f11791754d2645a127d26d9db8940465bd088 100644 (file)
@@ -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()