Author r.david.murray
Recipients dastagg, r.david.murray, trambalda
Date 2013-02-20.03:06:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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").
Date User Action Args
2013-02-20 03:06:32r.david.murraysetrecipients: + r.david.murray, dastagg, trambalda
2013-02-20 03:06:32r.david.murraysetmessageid: <>
2013-02-20 03:06:32r.david.murraylinkissue7981 messages
2013-02-20 03:06:32r.david.murraycreate