Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pytest_notebook/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"""
import os
import shlex
from pathlib import Path

import pytest

Expand Down Expand Up @@ -270,7 +271,7 @@ def pytest_collect_file(path, parent):
path.fnmatch(pat) for pat in other_args.get("nb_file_fnmatch", ["*.ipynb"])
):
try:
return JupyterNbCollector.from_parent(parent, fspath=path)
return JupyterNbCollector.from_parent(parent, path=Path(path))
except AttributeError:
return JupyterNbCollector(path, parent)

Expand Down