]> granicus.if.org Git - python/commitdiff
#5727: Restore the ability to use readline when calling into pdb in doctests.
authorGeorg Brandl <georg@python.org>
Fri, 30 Jul 2010 09:59:28 +0000 (09:59 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 30 Jul 2010 09:59:28 +0000 (09:59 +0000)
Lib/doctest.py
Misc/NEWS

index 0db75b4343dcf7cacd450d47045a38f937846044..d1b96d4d08f63907a522fa7731da7f5d771e1747 100644 (file)
@@ -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
index 901d21f83205c176196be36f4e04221159790ab1..50fa0cf0d7977e9178f2e8f79c22f4192eae2e7d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -475,6 +475,9 @@ C-API
 Library
 -------
 
+- Issue #5727: Restore the ability to use readline when calling into pdb
+  in doctests.
+
 - Issue #6719: In pdb, do not stop somewhere in the encodings machinery
   if the source file to be debugged is in a non-builtin encoding.