aliles added the comment: 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? ---------- nosy: +aliles _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8256> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com