Message182464
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 |
|
Date |
User |
Action |
Args |
2013-02-20 03:06:32 | r.david.murray | set | recipients:
+ r.david.murray, dastagg, trambalda |
2013-02-20 03:06:32 | r.david.murray | set | messageid: <1361329592.35.0.0641522530036.issue7981@psf.upfronthosting.co.za> |
2013-02-20 03:06:32 | r.david.murray | link | issue7981 messages |
2013-02-20 03:06:32 | r.david.murray | create | |
|