From 72da84d69884d928044497df55f6590aa802e037 Mon Sep 17 00:00:00 2001 From: mr-tz Date: Fri, 10 Nov 2023 15:55:01 +0100 Subject: [PATCH] pass path argument, of type pathlib.Path, instead of fspath argument --- tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 7092fcadc..49b04b76d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -50,9 +50,9 @@ def identify_decoding_functions(vw): return top_functions, decoding_function_features -def pytest_collect_file(parent, path): - if path.basename == "test.yml": - return YamlFile.from_parent(parent, fspath=path) +def pytest_collect_file(parent, file_path): + if file_path.name == "test.yml": + return YamlFile.from_parent(parent, path=file_path) class YamlFile(pytest.File):