Skip to content

Commit c9913f2

Browse files
oliparcolGrokzen
authored andcommitted
Supporting PosixPath pytest tmp_path fixture.
1 parent 6ef4734 commit c9913f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ def test_multi_file_support(self):
355355
)
356356

357357
def test_python_obj_loading(self, tmp_path):
358+
# in latest pytest version, tmp_path is a PosixPath
359+
tmp_path = str(tmp_path)
360+
358361
schema = """
359362
allowempty: True
360363
mapping:

0 commit comments

Comments
 (0)