summaryrefslogtreecommitdiff
path: root/tests/snippets/conftest.py
diff options
context:
space:
mode:
authorFabrizio Riguzzi <fabrizio.riguzzi@unife.it>2022-02-20 13:20:18 +0100
committerFabrizio Riguzzi <fabrizio.riguzzi@unife.it>2022-02-20 13:20:18 +0100
commit61c78d1effec9b4e80c434320d772eee37a002a0 (patch)
tree1aa99967ee66eb31e033d63d4b77278e74da2a25 /tests/snippets/conftest.py
parentc9bd789dbb397792f5adf912f8599175066724e9 (diff)
parent4b8738a825bef845e66ce57d4ca204b584afda08 (diff)
downloadpygments-git-61c78d1effec9b4e80c434320d772eee37a002a0.tar.gz
Merge branch 'master' of github.com:pygments/pygments
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):