From 997443c14cc29e5616b9f3d7c337e89fda60de11 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 27 Jan 2020 04:08:39 -0800 Subject: [PATCH] Fix so that test.test_distutils can be executed by unittest and not just regrtest (GH-13480) --- Lib/test/test_distutils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/test/test_distutils.py b/Lib/test/test_distutils.py index d613abe453b..a37f1179175 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()