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_build_ext.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_build_ext.py')
| -rw-r--r-- | Lib/distutils/tests/test_build_ext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index 8e7364d2a2..3ee567d045 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -545,8 +545,8 @@ class ParallelBuildExtTestCase(BuildExtTestCase): def test_suite(): suite = unittest.TestSuite() - suite.addTest(unittest.makeSuite(BuildExtTestCase)) - suite.addTest(unittest.makeSuite(ParallelBuildExtTestCase)) + suite.addTest(unittest.TestLoader().loadTestsFromTestCase(BuildExtTestCase)) + suite.addTest(unittest.TestLoader().loadTestsFromTestCase(ParallelBuildExtTestCase)) return suite if __name__ == '__main__': |
