Skip to content

Commit 98f36ed

Browse files
committed
Avoid TraitError when setting root_dir
1 parent 8f6a182 commit 98f36ed

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)