-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
UnicodeDecodeError from pytest if object representation contains non-ascii, utf8 encoded, characters #877
Comments
RonnyPfannschmidt
added a commit
to RonnyPfannschmidt/pytest
that referenced
this issue
Jul 25, 2015
i decided against using a warning since the problem goes away with python3 the support code can be removed once we drop python2 in 10 years or so
i'm seeing this issue too. FYI this is a duplicate of #678 |
RonnyPfannschmidt
added a commit
to RonnyPfannschmidt/pytest
that referenced
this issue
Sep 13, 2015
RonnyPfannschmidt
added a commit
to RonnyPfannschmidt/pytest
that referenced
this issue
Sep 13, 2015
i decided against using a warning since the problem goes away with python3 the support code can be removed once we drop python2 in 10 years or so
RonnyPfannschmidt
added a commit
to RonnyPfannschmidt/pytest
that referenced
this issue
Sep 13, 2015
RonnyPfannschmidt
added a commit
to RonnyPfannschmidt/pytest
that referenced
this issue
Sep 18, 2015
@RonnyPfannschmidt I did a similar fix here https://github.com/pytest-dev/pytest/compare/master...doordash:unicode-fix?expand=1, but I recall having to also fix some things in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the following test code:
Running it gives
result
is['assert not \xc3\xa9']
. I believe that python's default encoding used to decode from str to unicode isascii
, which fails while decoding the utf-8 encoded object representation.The text was updated successfully, but these errors were encountered: