'Test case for issue 2434: DecodeError on Python 2 when doctest contains non-ascii
characters.'

def test_unicode_doctest(self, testdir):

    p = testdir.maketxtfile(test_unicode_doctest='\n                                                ..    doctest::\n\n                                                                >>>    print(\n                                                                ...                "Hi\\n\\nBy\xc3\xa9")\n                                                                Hi\n                                                                ...\n                                                                By\xc3\xa9\n                                                                >>>    1/0        #    By\xc3\xa9\n                                                                1\n                                ')
    result = testdir.runpytest(p)
    result.stdout.fnmatch_lines(['*UNEXPECTED    EXCEPTION:    ZeroDivisionError*', '*1    failed*'])
