This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients charlax, cjw296, georg.brandl, terry.reedy, tim.peters
Date 2011-03-09.05:01:44
SpamBayes Score 4.871152e-09
Marked as misclassified No
Message-id <1299646905.67.0.734540065387.issue3722@psf.upfronthosting.co.za>
In-reply-to
Content
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 releases are not intended to contain intentional design changes.
So yes, documenting a design decision makes it not a tracker behavior issue, even if you consider that decision a design bug.

That said, I do not see that temporary debugging output belongs in relatively permanent doctests. That will make the doctest fail as soon as the debugging output is turned back off.

A function whose permanent api is to print to stdout as a side-effect and then raise an exception is very unusual. So I think it OK for doctest to not cover such a thing.

Without a real-world use case, I am inclined to close this issue. Even then, a unittest, where output and exception channels are not mixed together, might be a better choice.
History
Date User Action Args
2011-03-09 05:01:45terry.reedysetrecipients: + terry.reedy, tim.peters, georg.brandl, cjw296, charlax
2011-03-09 05:01:45terry.reedysetmessageid: <1299646905.67.0.734540065387.issue3722@psf.upfronthosting.co.za>
2011-03-09 05:01:45terry.reedylinkissue3722 messages
2011-03-09 05:01:44terry.reedycreate