Skip to content

Commit 4cf2e79

Browse files
committed
Fix compatibility issues in tests
1 parent 118ac57 commit 4cf2e79

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
pathlib ; python_version == '2.7'
12
pytest >=3.7.0
23
setuptools_scm

tests/test_09_examples_scope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_scope_module(ctestdir):
2727
def test_scope_session(ctestdir):
2828
"""Dependencies in session scope
2929
"""
30-
subdir = Path(ctestdir.tmpdir) / "tests"
30+
subdir = Path(str(ctestdir.tmpdir)) / "tests"
3131
subdir.mkdir()
3232
with get_example("scope_session_mod_01.py").open("rt") as sf:
3333
with (subdir / "test_mod_01.py").open("wt") as df:

0 commit comments

Comments
 (0)