def test_txtfile_failing(self, testdir):
    p = testdir.maketxtfile('\n            >>> i = 0\n            >>> i + 1\n            2\n        ')
    result = testdir.runpytest(p, '-s')
    result.stdout.fnmatch_lines(['001 >>> i = 0', '002 >>> i + 1', 'Expected:', '    2', 'Got:', '    1', '*test_txtfile_failing.txt:2: DocTestFailure'])
def test_txtfile_failing(self, testdir):
    p = testdir.maketxtfile('\n            >>> i = 0\n            >>> i + 1\n            2\n        ')
    result = testdir.runpytest(p, '-s')
    result.stdout.fnmatch_lines(['001 >>> i = 0', '002 >>> i + 1', 'Expected:', '    2', 'Got:', '    1', '*test_txtfile_failing.txt:2: DocTestFailure'])