Issue #17463: Fix test discovery for test_pdb.py

This commit is contained in:
Andrew Svetlov 2013-03-18 10:09:50 -07:00
parent f3a1b6efe0
commit f0efea0841
1 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# A test suite for pdb; not very comprehensive at the moment. # A test suite for pdb; not very comprehensive at the moment.
import doctest
import imp import imp
import pdb import pdb
import sys import sys
@ -701,11 +702,11 @@ class PdbTestCase(unittest.TestCase):
support.unlink(support.TESTFN) support.unlink(support.TESTFN)
def test_main(): def load_tests(*args):
from test import test_pdb from test import test_pdb
support.run_doctest(test_pdb, verbosity=True) suites = [unittest.makeSuite(PdbTestCase), doctest.DocTestSuite(test_pdb)]
support.run_unittest(PdbTestCase) return unittest.TestSuite(suites)
if __name__ == '__main__': if __name__ == '__main__':
test_main() unittest.main()