Skip to content

[Py2] UnicodeDecodeError in doctest with Unicode #2434

@inducer

Description

@inducer

Save this file as x.rst:

.. doctest::

    >>> print(
    ...    "Hi\n\nByé")
    Hi
    ...
    Byé
    >>> 1/0
    1

Run with

python -m pytest x.rst 

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugproblem that needs to be addressedtype: regressionindicates a problem that was introduced in a release which was working previously

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions