mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-89392: Remove support of test_main() in libregrtest (GH-108876)
This commit is contained in:
parent
1170d5a292
commit
04a0830b00
3 changed files with 11 additions and 12 deletions
|
@ -1803,9 +1803,9 @@ class ArgsTestCase(BaseTestCase):
|
|||
7948648
|
||||
"""
|
||||
|
||||
def test_main():
|
||||
testmod = sys.modules[__name__]
|
||||
return support.run_doctest(testmod)
|
||||
def load_tests(loader, tests, pattern):
|
||||
tests.addTest(doctest.DocTestSuite())
|
||||
return tests
|
||||
''')
|
||||
testname = self.create_test(code=code)
|
||||
|
||||
|
@ -1814,7 +1814,7 @@ class ArgsTestCase(BaseTestCase):
|
|||
self.check_executed_tests(output, [testname],
|
||||
failed=[testname],
|
||||
randomize=True,
|
||||
stats=TestStats(4, 2, 1))
|
||||
stats=TestStats(1, 1, 0))
|
||||
|
||||
|
||||
class TestUtils(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue