summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-30 09:59:28 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-30 09:59:28 (GMT)
commitd72e043bddf965ce1cdc7a85baef1d3e929df070 (patch)
tree5091e2ab414152005d883ef6b3303bab897208f8 /Lib/doctest.py
parent06535ee56d1a8f4982fdbdff2d1a6db638bc5def (diff)
downloadcpython-d72e043bddf965ce1cdc7a85baef1d3e929df070.zip
cpython-d72e043bddf965ce1cdc7a85baef1d3e929df070.tar.gz
cpython-d72e043bddf965ce1cdc7a85baef1d3e929df070.tar.bz2
#5727: Restore the ability to use readline when calling into pdb in doctests.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 0db75b4..d1b96d4 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -318,6 +318,8 @@ class _OutputRedirectingPdb(pdb.Pdb):
self.__out = out
self.__debugger_used = False
pdb.Pdb.__init__(self, stdout=out)
+ # still use input() to get user input
+ self.use_rawinput = 1
def set_trace(self, frame=None):
self.__debugger_used = True