diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-09-13 10:49:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 10:49:53 +0300 |
commit | 851811f5772c43f72f445e2ce1ac3ea9da951ae3 (patch) | |
tree | 4178e52377f5bfd4f9e94dc5261eb0a6e05ef6cc /Lib/distutils/tests/test_install_headers.py | |
parent | c78d5ca3806d02e26f9f3fa92ff567f0805eac4c (diff) | |
download | cpython-git-851811f5772c43f72f445e2ce1ac3ea9da951ae3.tar.gz |
bpo-5846: Do not use obsolete unittest functions. (GH-28303)
Get rid of use of makeSuite() and findTestCases().
Also make test_math and test_threading_local discoverable.
Diffstat (limited to 'Lib/distutils/tests/test_install_headers.py')
-rw-r--r-- | Lib/distutils/tests/test_install_headers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_install_headers.py b/Lib/distutils/tests/test_install_headers.py index 2217b321e6..1aa4d09cde 100644 --- a/Lib/distutils/tests/test_install_headers.py +++ b/Lib/distutils/tests/test_install_headers.py @@ -33,7 +33,7 @@ class InstallHeadersTestCase(support.TempdirManager, self.assertEqual(len(cmd.get_outputs()), 2) def test_suite(): - return unittest.makeSuite(InstallHeadersTestCase) + return unittest.TestLoader().loadTestsFromTestCase(InstallHeadersTestCase) if __name__ == "__main__": run_unittest(test_suite()) |