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 <1361329592.35.0.0641522530036.issue7981@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
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: <1361329592.35.0.0641522530036.issue7981@psf.upfronthosting.co.za>
2013-02-20 03:06:32r.david.murraylinkissue7981 messages
2013-02-20 03:06:32r.david.murraycreate