mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -1975,14 +1975,10 @@ class ChecklineTests(unittest.TestCase):
|
|||
self.assertFalse(db.checkline(os_helper.TESTFN, lineno))
|
||||
|
||||
|
||||
def load_tests(*args):
|
||||
def load_tests(loader, tests, pattern):
|
||||
from test import test_pdb
|
||||
suites = [
|
||||
unittest.makeSuite(PdbTestCase),
|
||||
unittest.makeSuite(ChecklineTests),
|
||||
doctest.DocTestSuite(test_pdb)
|
||||
]
|
||||
return unittest.TestSuite(suites)
|
||||
tests.addTest(doctest.DocTestSuite(test_pdb))
|
||||
return tests
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue