[issue3722] print followed by exception eats print with doctest

2020-12-20 Thread Chris Withers
Change by Chris Withers : -- keywords: -easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue3722] print followed by exception eats print with doctest

2020-12-20 Thread Chris Withers
Chris Withers added the comment: @iritkatriel - if Tim thinks this is hard, it probably is hard ;-) -- ___ Python tracker ___ ___ Py

[issue3722] print followed by exception eats print with doctest

2020-12-19 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch versions: +Python 3.10 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mai

[issue3722] print followed by exception eats print with doctest

2011-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: You misunderstood my last response. The first paragraph *dismisses* the case of temporary print (raised by Charles-Axle) as out of scope for doctests and hence this issue. The next ones addresses *your* case of code *permanently* intended to print and raise a

[issue3722] print followed by exception eats print with doctest

2011-03-20 Thread Chris Withers
Chris Withers added the comment: Terry, My original post was not about *temporary* output inserted for debugging, but test mocks and the like which form a permanent part of the test and which output to stdout. cheers, Chris -- ___ Python tracker

[issue3722] print followed by exception eats print with doctest

2011-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Temporary output will break all doctests, not just those with exception traceback. One should fix, disable debug output, and then rerun doctest to make sure fix did not break anything else. A function that prints and raises *can* be tested as by separately te

[issue3722] print followed by exception eats print with doctest

2011-03-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: For the purpose of this tracker, a 'bug' (behavior issue) is a discrepancy between doc and behavior. Micro ('bugfix') releases fix such discrepancies, which are all unintentional. Every feature request addresses what someone considers a 'design bug'. Micro r

[issue3722] print followed by exception eats print with doctest

2009-04-07 Thread Georg Brandl
Georg Brandl added the comment: It's not really my call. Tim is the author of the module and classified it as a feature request. Why don't you try to come up with a patch? He might even accept it :D -- nosy: +georg.brandl ___ Python tracker

[issue3722] print followed by exception eats print with doctest

2009-04-02 Thread Chris Withers
Chris Withers added the comment: Hey Georg, I agree with the priority, but I'm still not convinced this is just a feature request. The piece of documentation that Tim is referring to is a tiny footnote in the doctest docs, and, as I said previously, I'm not sure documenting a bug makes it an

[issue3722] print followed by exception eats print with doctest

2009-04-02 Thread Georg Brandl
Changes by Georg Brandl : -- priority: -> low type: behavior -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue3722] print followed by exception eats print with doctest

2008-12-05 Thread Charles-Axel Dein
Charles-Axel Dein <[EMAIL PROTECTED]> added the comment: This is a bug. This is not a good behavior. If I would like to temporarily print a variable to see its content, in order to debug my code, doctest will eat its output. Thus I will be make to use pdb or to use logging, or to get rid of do

[issue3722] print followed by exception eats print with doctest

2008-09-04 Thread Chris Withers
Chris Withers <[EMAIL PROTECTED]> added the comment: Out of interest, where are the doctest docs you quoted? I missed that bit and that disturbs me :-S I'm not sure documenting a bug and trying to explain it away makes it any less of a bug, nonetheless, lets leave this one open as a feature requ

[issue3722] print followed by exception eats print with doctest

2008-08-29 Thread Tim Peters
Tim Peters <[EMAIL PROTECTED]> added the comment: As the doctest docs say, Examples containing both expected output and an exception are not supported. Trying to guess where one ends and the other begins is too error-prone, and that also makes for a confusing test. Since this i

[issue3722] print followed by exception eats print with doctest

2008-08-29 Thread Chris Withers
Chris Withers <[EMAIL PROTECTED]> added the comment: Here's the full test file. Added file: http://bugs.python.org/file11301/doctestbug.py ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3722] print followed by exception eats print with doctest

2008-08-29 Thread Chris Withers
New submission from Chris Withers <[EMAIL PROTECTED]>: Here's an example from a python interpreter session: Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> def test(): ... print "hello" ...