From d72e043bddf965ce1cdc7a85baef1d3e929df070 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 30 Jul 2010 09:59:28 +0000 Subject: #5727: Restore the ability to use readline when calling into pdb in doctests. --- Lib/doctest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/doctest.py') diff --git a/Lib/doctest.py b/Lib/doctest.py index 0db75b4343..d1b96d4d08 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 -- cgit v1.2.1