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 r.david.murray
Recipients r.david.murray
Date 2015-08-24.16:20:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440433204.72.0.951879790885.issue24925@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is a patch that enhances doctest discovery so that it can correctly report the line number for doctest errors in tests that are string values of the __test__ dictionary.  It only works if the strings are formatted as triple quoted strings, but since that is the most common case I think it is worth doing.

I don't have a test for this...I think it will require a unit test rather than adding to the doctests, since it needs to check the reported line number and other changes to test_doctest.py would change the line numbers.
History
Date User Action Args
2015-08-24 16:20:04r.david.murraysetrecipients: + r.david.murray
2015-08-24 16:20:04r.david.murraysetmessageid: <1440433204.72.0.951879790885.issue24925@psf.upfronthosting.co.za>
2015-08-24 16:20:04r.david.murraylinkissue24925 messages
2015-08-24 16:20:04r.david.murraycreate