def test_doctest_linedata_missing(self, testdir):
    testdir.tmpdir.join('hello.py').write(textwrap.dedent("                class Fun(object):\n                    @property\n                    def test(self):\n                        '''\n                        >>> a = 1\n                        >>> 1/0\n                        '''\n                "))
    result = testdir.runpytest('--doctest-modules')
    result.stdout.fnmatch_lines(['*hello*', '*EXAMPLE LOCATION UNKNOWN, not showing all tests of that example*', '*1/0*', '*UNEXPECTED*ZeroDivision*', '*1 failed*'])
def test_doctest_linedata_missing(self, testdir):
    testdir.tmpdir.join('hello.py').write(textwrap.dedent("                class Fun(object):\n                    @property\n                    def test(self):\n                        '\n                        >>> a = 1\n                        >>> 1/0\n                        '\n                "))
    result = testdir.runpytest('--doctest-modules')
    result.stdout.fnmatch_lines(['*hello*', '*EXAMPLE LOCATION UNKNOWN, not showing all tests of that example*', '*1/0*', '*UNEXPECTED*ZeroDivision*', '*1 failed*'])