Fix so that test.test_distutils can be executed by unittest and not just regrtest (GH-13480)

This commit is contained in:
Toshio Kuratomi 2020-01-27 04:08:39 -08:00 committed by Cheryl Sabella
parent 8a4cd700a7
commit 997443c14c
1 changed files with 6 additions and 0 deletions

View 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()