-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeEncodeError when raising an exception with non-ascii characters #47
Comments
anthonywee
added a commit
to anthonywee/flaky
that referenced
this issue
Jul 23, 2015
Fixes box#47. Catch a UncodeEncodeError when writing to the stream, and encode using utf-8 if needed.
anthonywee
added a commit
to anthonywee/flaky
that referenced
this issue
Jul 24, 2015
anthonywee
added a commit
to anthonywee/flaky
that referenced
this issue
Jul 24, 2015
Fixes box#47. Catch a UncodeEncodeError when writing to the stream, and encode using utf-8 if needed. Add a new util method ensure_byte_string().
anthonywee
added a commit
to anthonywee/flaky
that referenced
this issue
Jul 29, 2015
Move note on fix for UnicodeEncodeError (box#47) from 2.1.1 release into Upcoming section.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Python 2.6 tests will fail with a UnicodeEncodeError if an exception is raised with non-ascii characters in the message.
For example, I updated the test_non_flaky_thing() test in test_example.py to include the non-ascii message in the exception:
This caused a UnicodeEncodeError when running the Python 2.6 tests:
The text was updated successfully, but these errors were encountered: