From 3a479db126d081532e76a5a4018bcfb6ad11f5e9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 6 Dec 2021 22:55:06 +0100 Subject: [PATCH] Fix hook param name in nonpython example (#9373) 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 8e003655d..7ec413403 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):