Report lineno from doctest
This is to fix pytest-sugar#122 issue.
This commit is contained in:
parent
1cf826624e
commit
af2c153324
|
@ -140,7 +140,7 @@ class DoctestItem(pytest.Item):
|
||||||
return super(DoctestItem, self).repr_failure(excinfo)
|
return super(DoctestItem, self).repr_failure(excinfo)
|
||||||
|
|
||||||
def reportinfo(self):
|
def reportinfo(self):
|
||||||
return self.fspath, None, "[doctest] %s" % self.name
|
return self.fspath, self.dtest.lineno, "[doctest] %s" % self.name
|
||||||
|
|
||||||
|
|
||||||
def _get_flag_lookup():
|
def _get_flag_lookup():
|
||||||
|
|
Loading…
Reference in New Issue