Skip to content

Commit 6641840

Browse files
committed
Fix hook param name in nonpython example
Follow up to pytest-dev#9363
1 parent 70d3d0f commit 6641840

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/en/example/nonpython/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import pytest
33

44

5-
def pytest_collect_file(parent, fspath):
6-
if fspath.suffix == ".yaml" and fspath.name.startswith("test"):
7-
return YamlFile.from_parent(parent, path=fspath)
5+
def pytest_collect_file(parent, file_path):
6+
if file_path.suffix == ".yaml" and file_path.name.startswith("test"):
7+
return YamlFile.from_parent(parent, path=file_path)
88

99

1010
class YamlFile(pytest.File):

0 commit comments

Comments
 (0)