Remove/replace some more unnecessary uses of py.path
This commit is contained in:
@@ -11,5 +11,5 @@ class CustomFile(pytest.File):
|
||||
yield CustomItem.from_parent(name="foo", parent=self)
|
||||
|
||||
|
||||
def pytest_collect_file(path, parent):
|
||||
return CustomFile.from_parent(fspath=path, parent=parent)
|
||||
def pytest_collect_file(fspath, parent):
|
||||
return CustomFile.from_parent(path=fspath, parent=parent)
|
||||
|
||||
Reference in New Issue
Block a user