Revert "Revert "Fix type errors after adding types to the py dependency""
Without changes to test_itemreport_reportinfo.
This reverts commit fb99b5c66e.
Conflicts:
testing/test_nose.py
This commit is contained in:
@@ -462,6 +462,7 @@ class Item(Node):
|
||||
@cached_property
|
||||
def location(self) -> Tuple[str, Optional[int], str]:
|
||||
location = self.reportinfo()
|
||||
assert isinstance(location[0], py.path.local), location[0]
|
||||
fspath = self.session._node_location_to_relpath(location[0])
|
||||
assert type(location[2]) is str
|
||||
return (fspath, location[1], location[2])
|
||||
|
||||
Reference in New Issue
Block a user