Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
This is still an issue with latest 2.7. I went ahead and created PR based on Victor's suggestion in msg121294. I am not sure of the correct way to test this I have used cStringIO.StringIO as the stream for a test case with a unicode description along with setting default encoding as 'ascii'. I tested the original report to make sure the patch fixes the error. $ PYTHONIOENCODING=ascii ./python.exe ../backups/bpo10417.py --verbose test_unicode_docstring (__main__.UnicodeTest) t\xe4st - docstring with unicode character ... ok ---------------------------------------------------------------------- Ran 1 test in 0.004s OK ---------- nosy: +xtreak stage: patch review -> test needed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue10417> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com