mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue