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_bdist_rpm.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_bdist_rpm.py')
| -rw-r--r-- | Lib/distutils/tests/test_bdist_rpm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_bdist_rpm.py b/Lib/distutils/tests/test_bdist_rpm.py index 6453a02b88..3b22af3a90 100644 --- a/Lib/distutils/tests/test_bdist_rpm.py +++ b/Lib/distutils/tests/test_bdist_rpm.py @@ -129,7 +129,7 @@ class BuildRpmTestCase(support.TempdirManager, os.remove(os.path.join(pkg_dir, 'dist', 'foo-0.1-1.noarch.rpm')) def test_suite(): - return unittest.makeSuite(BuildRpmTestCase) + return unittest.TestLoader().loadTestsFromTestCase(BuildRpmTestCase) if __name__ == '__main__': run_unittest(test_suite()) |
