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.

Title: Improved doctest REPORT_*DIFFs with ELLIPSIS and/or NORMALIZE_WHITESPACE
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, labrat, tim.peters
Priority: normal Keywords: patch

Created on 2010-08-19 11:04 by labrat, last changed 2022-04-11 14:57 by admin.

File name Uploaded Description Edit
doctest_diff.patch labrat, 2010-08-19 11:05 patch
Messages (3)
msg114340 - (view) Author: W. Trevor King (labrat) * Date: 2010-08-19 11:04
I had been struggling to find the failure-causing mismatch in a doctest with lots of output.  REPORT_UDIFF gave lots of false mismatches because I was also using NORMALIZE_WHITESPACE.  Looking through the source, I saw a comment suggesting a nicer diff in the similar REPORT_*DIFF and ELLIPSIS situation.  So I went ahead and implemented one.  I'm not super happy with the cleanliness of the implementation, but it ended up being a bit trickier than I'd initially expected.
msg114341 - (view) Author: W. Trevor King (labrat) * Date: 2010-08-19 11:05
Here's my patch, or pull from my Mercurial repository
msg381149 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2020-11-16 20:18
The patch needs to be converted into a github PR. Trevor, are you interested in doing that?
Date User Action Args
2022-04-11 14:57:05adminsetgithub: 53849
2020-11-17 05:13:14rhettingersetnosy: + tim.peters
2020-11-16 20:18:37iritkatrielsetnosy: + iritkatriel
messages: + msg381149
2010-08-19 11:06:03labratsetfiles: + doctest_diff.patch
keywords: + patch
messages: + msg114341
2010-08-19 11:04:09labratcreate