'Test case to make sure that DoctestItem.reportinfo() returns lineno.'

def test_reportinfo(self, testdir):

    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)
