mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
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.
This commit is contained in:
parent
c78d5ca380
commit
851811f577
49 changed files with 80 additions and 93 deletions
|
@ -331,8 +331,8 @@ class FindAllTestCase(unittest.TestCase):
|
|||
|
||||
def test_suite():
|
||||
return unittest.TestSuite([
|
||||
unittest.makeSuite(FileListTestCase),
|
||||
unittest.makeSuite(FindAllTestCase),
|
||||
unittest.TestLoader().loadTestsFromTestCase(FileListTestCase),
|
||||
unittest.TestLoader().loadTestsFromTestCase(FindAllTestCase),
|
||||
])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue