Skip to content

Commit 4ea9edb

Browse files
authored
Merge pull request #3 from kevin-bates/avoid-trait-error
Avoid TraitError when setting root_dir
2 parents 8f6a182 + 98f36ed commit 4ea9edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_jupyter/jupyter_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def jp_kernelspecs(jp_data_dir):
243243
@pytest.fixture(params=[True, False])
244244
def jp_contents_manager(request, jp_root_dir):
245245
"""Returns a FileContentsManager instance based on the use_atomic_writing parameter value."""
246-
return FileContentsManager(root_dir=jp_root_dir, use_atomic_writing=request.param)
246+
return FileContentsManager(root_dir=str(jp_root_dir), use_atomic_writing=request.param)
247247

248248

249249
@pytest.fixture

0 commit comments

Comments
 (0)