Fix so that test.test_distutils can be executed by unittest and not just regrtest (GH-13480)
This commit is contained in:
parent
8a4cd700a7
commit
997443c14c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue