summaryrefslogtreecommitdiff
path: root/src/_pytest/doctest.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-01-21 12:29:22 +0100
committerDaniel Hahler <git@thequod.de>2020-01-23 10:45:27 +0100
commitef112fd7dd8ee220865f7569c0ecc4fa5eb24464 (patch)
treedf666d8117aef5b0c6070f314ef298c6058eed20 /src/_pytest/doctest.py
parent8fa57c8384818efcc83af604f0ccfc2620dd111c (diff)
downloadpytest-ef112fd7dd8ee220865f7569c0ecc4fa5eb24464.tar.gz
Revert "Revert "Fix type errors after adding types to the `py` dependency""
Without changes to test_itemreport_reportinfo. This reverts commit fb99b5c66ee06ad0bd3336d8599448d1d3da4f7f. Conflicts: testing/test_nose.py
Diffstat (limited to 'src/_pytest/doctest.py')
-rw-r--r--src/_pytest/doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/doctest.py b/src/_pytest/doctest.py
index e62c5e17e..d7ca888cc 100644
--- a/src/_pytest/doctest.py
+++ b/src/_pytest/doctest.py
@@ -308,7 +308,7 @@ class DoctestItem(pytest.Item):
else:
return super().repr_failure(excinfo)
- def reportinfo(self) -> Tuple[str, int, str]:
+ def reportinfo(self) -> Tuple[py.path.local, int, str]:
return self.fspath, self.dtest.lineno, "[doctest] %s" % self.name