[Py2] UnicodeDecodeError in doctest with Unicode #2434
Closed
Labels
Comments
Thanks for the report and the reproducible example, we appreciate it. |
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
May 25, 2017
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
May 26, 2017
I was still able to reproduce this issue in pytest 3.1.2 with the following file: # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
def fix_bad_unicode(text):
"""
>>> print fix_bad_unicode('único')
único
"""
return "único" Save as For what it's worth: I made this file while debugging the same error generated by the file embedded in this blog post. |
Indeed I can reproduce the problem using you example, thanks! |
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Jun 13, 2017
nicoddemus
added a commit
to nicoddemus/pytest
that referenced
this issue
Jun 13, 2017
I don't have time to come up with another reproducer, but this issue is not entirely fixed: https://gitlab.tiker.net/inducer/loopy/-/jobs/40102. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save this file as
x.rst
:Run with
on pytest 3.1.0 with Python 2.7.11, observe lengthy stacktrace ending with a
UnicodeDecodeError
in_ellipsis_match
. Pytest 3.0.4 works fine.The text was updated successfully, but these errors were encountered: