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 aliles
Recipients aliles, amaury.forgeotdarc, belopolsky, dangyogi, flox, gruszczy, r.david.murray, vstinner
Date 2012-08-22.12:01:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345636894.11.0.759614231332.issue8256@psf.upfronthosting.co.za>
In-reply-to
Content
Replicated this issue on Python 3.3b2. The cause is the 'encoding' and 'errors' attributes on io.StringIO() being None. Doctest replaces sys.stdout with a StringIO subclass. The exception raised is still a TypeError.

At this point I'm unsure what the fix should be:

1. Should the exception raised be more descriptive of the problem?
2. Should io.StringIO have real values for encoding and errors?
3. Should Doctest's StingIO class provide encoding and errors?
History
Date User Action Args
2012-08-22 12:01:34alilessetrecipients: + aliles, amaury.forgeotdarc, belopolsky, vstinner, dangyogi, r.david.murray, gruszczy, flox
2012-08-22 12:01:34alilessetmessageid: <1345636894.11.0.759614231332.issue8256@psf.upfronthosting.co.za>
2012-08-22 12:01:33alileslinkissue8256 messages
2012-08-22 12:01:32alilescreate