[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2019-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Test that your fix does not break the case of 8-bit non-ascii docstring. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2019-04-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan 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

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2019-04-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +12754 stage: test needed -> patch review ___ Python tracker ___

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2019-03-15 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2014-07-03 Thread Michael Foord
Michael Foord added the comment: So the proposed fix does the backslashreplace for errors and then re-decodes, allowing the encode in the stream to work. That seems like a good fix. -- ___ Python tracker rep...@bugs.python.org

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: Does this need following up, can it be closed as won't fix as it only affects 2.7, or what? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2014-06-30 Thread STINNER Victor
STINNER Victor added the comment: Does this need following up, can it be closed as won't fix as it only affects 2.7, or what? IMO we should fix this issue. I proposed a fix in msg121294. -- ___ Python tracker rep...@bugs.python.org

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2012-09-28 Thread Michael Foord
Michael Foord added the comment: So on OS X (Python 2.7 only) the following still fails: PYTHONIOENCODING=ascii ./python.exe unicodetest.py --verbose -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-12-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #10601: sys.displayhook: use backslashreplace error handler if repr(value) is not encodable to sys.stdout. -- ___ Python tracker rep...@bugs.python.org

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have read and closed too fast, Johannes still has the bug on OS X. Can someone turn his example script into a patch adding a unit test? -- resolution: out of date - stage: committed/rejected - unit test needed status: closed - open

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: The issue is with a non-ascii character in a *Unicode* docstring. Python has to encode the string to write it to the terminal; the encode is implicit and so fails. The problem doesn't happen with Python 3 unless you run on an ascii

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Johannes, can you paste the output of the locale command? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417 ___

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In Python 3, sys.stderr uses the 'backslashreplace' error handler. With C locale, sys.stderr uses the ASCII encoding and so the é unicode character is printed as \xe9. In Python 2, sys.stderr.errors is strict by default. It works

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-15 Thread Jeffrey Finkelstein
Jeffrey Finkelstein jeffrey.finkelst...@gmail.com added the comment: I am not having this problem on Ubuntu 10.10 with the most recent Python 2.7: terminal interaction $ ./python unicodetest.py --verbose test_unicode_docstring (__main__.UnicodeTest) täst - docstring with unicode character ...

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Great, thank you for the update! Closing. -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Johannes Ammon
New submission from Johannes Ammon johannes.am...@gmail.com: When there is a non-ASCII character in the docstring of a test function, unittest triggers an UnicodeEncodeError when called with --verbose. I have this file unicodetest.py: - # -*- coding:

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417 ___ ___

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Is this a duplicate of #1293741? That issue was closed as out of date, but I'm not 100% convinced that was the correct closure. What do you think? Does it still happen with 2.7? (2.6 is in security fix only mode.) -- nosy:

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Johannes Ammon
Johannes Ammon johannes.am...@gmail.com added the comment: Same behaviour with 2.7 -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417 ___

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10417 ___ ___