summaryrefslogtreecommitdiff
path: root/tests/snippets/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/conftest.py')
-rw-r--r--tests/snippets/conftest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/snippets/conftest.py b/tests/snippets/conftest.py
index b5ee33c6..02e62555 100644
--- a/tests/snippets/conftest.py
+++ b/tests/snippets/conftest.py
@@ -16,6 +16,7 @@
:license: BSD, see LICENSE for details.
"""
+import pathlib
import pytest
from tests.conftest import LexerInlineTestItem
@@ -23,7 +24,7 @@ from tests.conftest import LexerInlineTestItem
def pytest_collect_file(parent, path):
if path.ext == '.txt':
- return LexerTestFile.from_parent(parent, fspath=path)
+ return LexerTestFile.from_parent(parent, path=pathlib.Path(path))
class LexerTestFile(pytest.File):