[Checkins] SVN: zope.testing/trunk/ Make readline work in pdb again when using doctest.
Wolfgang Schnerring
wosc at wosc.de
Fri Jun 5 10:57:50 EDT 2009
Log message for revision 100652:
Make readline work in pdb again when using doctest.
It was fine with python2.4, but it broke with 2.5, for background details see <http://bugs.python.org/issue5727>.
Unfortunately I don't know how to write a test that checks this behaviour.
Changed:
U zope.testing/trunk/CHANGES.txt
U zope.testing/trunk/src/zope/testing/doctest.py
-=-
Modified: zope.testing/trunk/CHANGES.txt
===================================================================
--- zope.testing/trunk/CHANGES.txt 2009-06-05 14:20:02 UTC (rev 100651)
+++ zope.testing/trunk/CHANGES.txt 2009-06-05 14:57:49 UTC (rev 100652)
@@ -8,6 +8,8 @@
- The option REPORT_ONLY_FIRST_FAILURE (command line option "-1") is now
respected even when a doctest declares its own REPORTING_FLAGS, such as
REPORT_NDIFF.
+- Fixed bug that broke readline with pdb when using doctest
+ (see http://bugs.python.org/issue5727).
3.7.4 (2009-05-01)
Modified: zope.testing/trunk/src/zope/testing/doctest.py
===================================================================
--- zope.testing/trunk/src/zope/testing/doctest.py 2009-06-05 14:20:02 UTC (rev 100651)
+++ zope.testing/trunk/src/zope/testing/doctest.py 2009-06-05 14:57:49 UTC (rev 100652)
@@ -358,6 +358,8 @@
pdb.Pdb.__init__(self, stdin=sys.stdin, stdout=out)
except TypeError:
pdb.Pdb.__init__(self)
+ # enable readline
+ self.use_rawinput = 1
def set_trace(self):
self.__debugger_used = True
More information about the Checkins
mailing list