gh-89392: Remove support of test_main() in libregrtest (GH-108876)

This commit is contained in:
Serhiy Storchaka 2023-09-05 08:36:43 +03:00 committed by GitHub
parent 1170d5a292
commit 04a0830b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 12 deletions

View file

@ -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):