Skip to content

Commit

Permalink
Fix nonpython.rst usage of deprecated Node.fspath
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Jun 30, 2021
1 parent 5016375 commit 43afb3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/en/example/nonpython/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# content of conftest.py
import pytest
from _pytest.compat import legacy_path


def pytest_collect_file(parent, fspath):
Expand Down Expand Up @@ -40,7 +41,7 @@ def repr_failure(self, excinfo):
)

def reportinfo(self):
return self.fspath, 0, f"usecase: {self.name}"
return legacy_path(self.path), 0, f"usecase: {self.name}"


class YamlException(Exception):
Expand Down

0 comments on commit 43afb3f

Please sign in to comment.