[New-bugs-announce] [issue7583] doctest should normalize tabs when comparing output
anatoly techtonik
report at bugs.python.org
Sun Dec 27 17:50:32 CET 2009
New submission from anatoly techtonik <techtonik at gmail.com>:
Since 2.4 doctest converts all tabs to 8-space sequences in test source.
It should do the same with output it receives for comparison. Right now
there is no way to write a correct doctest if the output includes tab
character. See attached doctabtest.py
This change would be backwards compatible, because all tests with tabs are
either fail or run with doctest.NORMALIZE_WHITESPACE flag, which is
usually inappropriate for doctest cases that involve tab formatting.
----------
components: Tests
files: doctabtest.py
messages: 96914
nosy: techtonik
severity: normal
status: open
title: doctest should normalize tabs when comparing output
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file15679/doctabtest.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7583>
_______________________________________
More information about the New-bugs-announce
mailing list