R. David Murray added the comment:

This doesn't have anything to do with NORMALIZE_WHITESPACE.

In python3, <file>.write returns the number of bytes written, instead of None.  
If you add the 38 to the end of your test line, the test will pass.

This is not a bug in doctest, but a difference in 'write' behavior between 
Python2 and Python3.  You can write doctests that will pass on both by 
explicitly discarding the return value:

    >>> _ = sys.stdout.write("xxxx").
    xxxx

----------
nosy: +r.david.murray
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7981>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to