This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients r.david.murray, techtonik
Date 2010-04-04.03:30:33
SpamBayes Score 3.370319e-10
Marked as misclassified No
Message-id <1270351835.51.0.451402114701.issue7583@psf.upfronthosting.co.za>
In-reply-to
Content
I think I can see how it would cause confusion, and in general it shouldn't be necessary to use real tabs in a doctest.  So as you say the output should be fixed to match.

However, I don't think the patch is quite correct.  It looks to me like the expandtabs call should be made unconditionally on the output string just like it is on the string pulled from the file.  The reason is that the tabs in the output should be expanded relative to the start of the output line.  The indentation is meaningless in that context.  The way you did it, the output in your test appears to be indented incorrectly.  If the expandtabs were done on the raw output string, it would be indented eight spaces from the start of the test indent, and that would look correct.

Your change of 'iff' to 'if' is also most likely incorrect.  I'm pretty sure that 'iff' is intentional (it is an abbreviation for "if and only if".)
History
Date User Action Args
2010-04-04 03:30:35r.david.murraysetrecipients: + r.david.murray, techtonik
2010-04-04 03:30:35r.david.murraysetmessageid: <1270351835.51.0.451402114701.issue7583@psf.upfronthosting.co.za>
2010-04-04 03:30:33r.david.murraylinkissue7583 messages
2010-04-04 03:30:33r.david.murraycreate