Skip to content

Commit

Permalink
Merge pull request #902 from mr-tz/fix-pytest-856
Browse files Browse the repository at this point in the history
pass path argument, of type pathlib.Path, instead of fspath argument
  • Loading branch information
mr-tz authored Nov 10, 2023
2 parents 9405cb8 + 72da84d commit 727c544
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 727c544

Please sign in to comment.