aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_distutils.py
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2020-01-27 04:08:39 -0800
committerCheryl Sabella <cheryl.sabella@gmail.com>2020-01-27 07:08:39 -0500
commit997443c14cc29e5616b9f3d7c337e89fda60de11 (patch)
treef4b3c9412dbbb66db3490caa250ed596d8078cfd /Lib/test/test_distutils.py
parent8a4cd700a7426341c2074a2b580306d2d60ec839 (diff)
downloadcpython-997443c14cc29e5616b9f3d7c337e89fda60de11.tar.gz
cpython-997443c14cc29e5616b9f3d7c337e89fda60de11.zip
Fix so that test.test_distutils can be executed by unittest and not just regrtest (GH-13480)
Diffstat (limited to 'Lib/test/test_distutils.py')
-rw-r--r--Lib/test/test_distutils.py6
1 files changed, 6 insertions, 0 deletions
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()