From 6641840c20536db64e14ce430ddda6d4ebefec1a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 6 Dec 2021 20:32:05 +0100 Subject: [PATCH] Fix hook param name in nonpython example Follow up to #9363 --- doc/en/example/nonpython/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/en/example/nonpython/conftest.py b/doc/en/example/nonpython/conftest.py index 8e003655d0d..7ec4134036c 100644 --- a/doc/en/example/nonpython/conftest.py +++ b/doc/en/example/nonpython/conftest.py @@ -2,9 +2,9 @@ import pytest -def pytest_collect_file(parent, fspath): - if fspath.suffix == ".yaml" and fspath.name.startswith("test"): - return YamlFile.from_parent(parent, path=fspath) +def pytest_collect_file(parent, file_path): + if file_path.suffix == ".yaml" and file_path.name.startswith("test"): + return YamlFile.from_parent(parent, path=file_path) class YamlFile(pytest.File):