Wolfgang Schnerring <wosc+pyt...@wosc.de> added the comment:

I've tracked down the reason by diffing pdb.py and cmd.py between 2.4
and 2.5:
It turns out that pdb.Pdb in 2.5 changes the way it handles input
depending on whether an explicit output was provided, more precisely, it
disables readline in that case. I don't understand what's going on here,
but there is a simple, non-intrusive fix on the doctest side, see the
attached patch.

Unfortunately, I can't imagine how to write a test to check this behaviour.

----------
keywords: +patch
Added file: http://bugs.python.org/file14193/doctest-readline.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5727>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to