[issue5727] doctest pdb readline broken

2010-07-30 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83271. I think the first patch's approach is better, since it does not affect pdb, only doctest's adaption of pdb. Consequently, I couldn't use the test case; thanks anyway for that! -- resolution: -> fixed status: open -> closed _

[issue5727] doctest pdb readline broken

2010-05-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5727] doctest pdb readline broken

2010-05-04 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5727] doctest pdb readline broken

2010-05-04 Thread Sriram
Sriram added the comment: Hi, On second thoughts, it made more sense to validate pdb directly instead of validating doctest's debugger. I have also used few inputs, I got from irc chat at #python-dev room in writing the test case. Thanks to them. I have attached the svn diff. Please review

[issue5727] doctest pdb readline broken

2010-04-27 Thread Sriram
Sriram added the comment: Hi, I believe this behaviour can be tested if we can prove that Cmd's cmdloop uses raw_input to get the data as against self.stdin.readline(). To test it, ideally I would have liked to override sys.stdin with a fake input stream and pass the list of args (like it's

[issue5727] doctest pdb readline broken

2009-12-27 Thread Sriram
Sriram added the comment: Hi, This is the first bug am working in python, kindly excuse my mistakes, if any. As far as I can understand, the pdb disabled readline when an explicit stdin or stdout is passed, to allow remote debugging. I found this in Python 2.5.4 Release log. """ Patch #721

[issue5727] doctest pdb readline broken

2009-09-19 Thread Sriram
Sriram added the comment: Hi, How about changing pdb's behavior, that it disables readline only if the passed stream is not the stdout stream? Also when looking at doctest module, I found that bdb's trace_dispatch was overridden to set the debugger's output stream to something other than st

[issue5727] doctest pdb readline broken

2009-06-05 Thread Wolfgang Schnerring
Wolfgang Schnerring 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

[issue5727] doctest pdb readline broken

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed versions: +Python 2.6, Python 3.1 -Python 2.5 ___ Python tracker ___ ___ Python-bug

[issue5727] doctest pdb readline broken

2009-04-09 Thread Wolfgang Schnerring
New submission from Wolfgang Schnerring : When pdb is called from inside a doctest under python2.5, the readline keys do not work anymore -- like they did just fine in 2.4. Steps to reproduce: 1. Create two files, foo.txt and foo.py, like so: $ cat > foo.txt >>> import pdb; pdb.set_trace() $ ca