summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2013-03-18 17:10:08 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2013-03-18 17:10:08 (GMT)
commitc45e041bff4a5f9aa137dcd4933c72a9221cd7d5 (patch)
tree1abf770f9a0187be0ca6d9e2b1143ed8cb93be93 /Lib
parenta77d7a52e88fdbb3068b99bd15eba8a0aa204529 (diff)
parentf0efea0841a825b8aa68e2ff97ff24ae31037f80 (diff)
downloadcpython-c45e041bff4a5f9aa137dcd4933c72a9221cd7d5.zip
cpython-c45e041bff4a5f9aa137dcd4933c72a9221cd7d5.tar.gz
cpython-c45e041bff4a5f9aa137dcd4933c72a9221cd7d5.tar.bz2
Issue #17463: Fix test discovery for test_pdb.py
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_pdb.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index 4fb07a3..03084e4 100644
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -1,5 +1,6 @@
# 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()