Message168873
| 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? |
|