Revert fspath deprecation
It is not clear yet how we should proceed with this deprecation because `pytest.Item.reportinfo` is public API and returns a `py.path` object, and is not clear how plugins and our examples should handle that. Reverting just the deprecation aspect of #8251 so we can get a 7.0.0 release out. We will reintroduce the deprecation later once we have a clear path moving forward with replacing `reportinfo`. Closes #8445 Closes #8821
This commit is contained in:
@@ -614,8 +614,7 @@ class TestSession:
|
||||
items2, hookrec = pytester.inline_genitems(item.nodeid)
|
||||
(item2,) = items2
|
||||
assert item2.name == item.name
|
||||
with pytest.warns(DeprecationWarning):
|
||||
assert item2.fspath == item.fspath
|
||||
assert item2.fspath == item.fspath
|
||||
assert item2.path == item.path
|
||||
|
||||
def test_find_byid_without_instance_parents(self, pytester: Pytester) -> None:
|
||||
|
||||
Reference in New Issue
Block a user