def test_unicode_doctest(self, testdir):
    '\n        Test case for issue 2434: DecodeError on Python 2 when doctest contains non-ascii\n        characters.\n        '
    p = testdir.maketxtfile(test_unicode_doctest='\n            .. doctest::\n\n                >>> print(\n                ...    "Hi\\n\\nByé")\n                Hi\n                ...\n                Byé\n                >>> 1/0  # Byé\n                1\n        ')
    result = testdir.runpytest(p)
    result.stdout.fnmatch_lines(['*UNEXPECTED EXCEPTION: ZeroDivisionError*', '*1 failed*'])
Test case for issue 2434: DecodeError on Python 2 when doctest contains non-ascii
characters.
def test_unicode_doctest(self, testdir):
    '\n        Test case for issue 2434: DecodeError on Python 2 when doctest contains non-ascii\n        characters.\n        '
    p = testdir.maketxtfile(test_unicode_doctest='\n            .. doctest::\n\n                >>> print(\n                ...    "Hi\\n\\nByé")\n                Hi\n                ...\n                Byé\n                >>> 1/0  # Byé\n                1\n        ')
    result = testdir.runpytest(p)
    result.stdout.fnmatch_lines(['*UNEXPECTED EXCEPTION: ZeroDivisionError*', '*1 failed*'])