[issue9640] Improved doctest REPORT_*DIFFs with ELLIPSIS and/or NORMALIZE_WHITESPACE

W. Trevor King report at bugs.python.org
Thu Aug 19 13:04:11 CEST 2010


New submission from W. Trevor King <wking at drexel.edu>:

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 doctest.py 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.

----------
components: Library (Lib)
messages: 114340
nosy: labrat
priority: normal
severity: normal
status: open
title: Improved doctest REPORT_*DIFFs with ELLIPSIS and/or NORMALIZE_WHITESPACE
type: feature request
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9640>
_______________________________________


More information about the Python-bugs-list mailing list