Kaydet (Commit) c45e041b authored tarafından Andrew Svetlov's avatar Andrew Svetlov

Issue #17463: Fix test discovery for test_pdb.py

# A test suite for pdb; not very comprehensive at the moment.
import doctest
import imp
import pdb
import sys
......@@ -701,11 +702,11 @@ class PdbTestCase(unittest.TestCase):
support.unlink(support.TESTFN)
def test_main():
def load_tests(*args):
from test import test_pdb
support.run_doctest(test_pdb, verbosity=True)
support.run_unittest(PdbTestCase)
suites = [unittest.makeSuite(PdbTestCase), doctest.DocTestSuite(test_pdb)]
return unittest.TestSuite(suites)
if __name__ == '__main__':
test_main()
unittest.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment