summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2020-01-27 12:08:39 (GMT)
committerCheryl Sabella <cheryl.sabella@gmail.com>2020-01-27 12:08:39 (GMT)
commit997443c14cc29e5616b9f3d7c337e89fda60de11 (patch)
treef4b3c9412dbbb66db3490caa250ed596d8078cfd /Lib
parent8a4cd700a7426341c2074a2b580306d2d60ec839 (diff)
downloadcpython-997443c14cc29e5616b9f3d7c337e89fda60de11.zip
cpython-997443c14cc29e5616b9f3d7c337e89fda60de11.tar.gz
cpython-997443c14cc29e5616b9f3d7c337e89fda60de11.tar.bz2
Fix so that test.test_distutils can be executed by unittest and not just regrtest (GH-13480)
Diffstat (limited to 'Lib')
-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 d613abe..a37f117 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()