From 851811f5772c43f72f445e2ce1ac3ea9da951ae3 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 13 Sep 2021 10:49:53 +0300 Subject: 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. --- Lib/distutils/tests/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/distutils/tests/test_core.py') diff --git a/Lib/distutils/tests/test_core.py b/Lib/distutils/tests/test_core.py index 4e6694a3d1..700a22da04 100644 --- a/Lib/distutils/tests/test_core.py +++ b/Lib/distutils/tests/test_core.py @@ -134,7 +134,7 @@ class CoreTestCase(support.EnvironGuard, unittest.TestCase): self.assertEqual(stdout.readlines()[0], wanted) def test_suite(): - return unittest.makeSuite(CoreTestCase) + return unittest.TestLoader().loadTestsFromTestCase(CoreTestCase) if __name__ == "__main__": run_unittest(test_suite()) -- cgit v1.2.1