Message249060
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. |
|
Date |
User |
Action |
Args |
2015-08-24 16:20:04 | r.david.murray | set | recipients:
+ r.david.murray |
2015-08-24 16:20:04 | r.david.murray | set | messageid: <1440433204.72.0.951879790885.issue24925@psf.upfronthosting.co.za> |
2015-08-24 16:20:04 | r.david.murray | link | issue24925 messages |
2015-08-24 16:20:04 | r.david.murray | create | |
|