New submission from anatoly techtonik <techto...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7583> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com