def test_reportinfo(self, testdir):
    '\n        Test case to make sure that DoctestItem.reportinfo() returns lineno.\n        '
    p = testdir.makepyfile(test_reportinfo="\n            def foo(x):\n                '''\n                    >>> foo('a')\n                    'b'\n                '''\n                return 'c'\n        ")
    (items, reprec) = testdir.inline_genitems(p, '--doctest-modules')
    reportinfo = items[0].reportinfo()
    assert (reportinfo[1] == 1)
Test case to make sure that DoctestItem.reportinfo() returns lineno.
def test_reportinfo(self, testdir):
    '\n        \n        '
    p = testdir.makepyfile(test_reportinfo="\n            def foo(x):\n                '\n                    >>> foo('a')\n                    'b'\n                '\n                return 'c'\n        ")
    (items, reprec) = testdir.inline_genitems(p, '--doctest-modules')
    reportinfo = items[0].reportinfo()
    assert (reportinfo[1] == 1)