We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b4783 commit b70c440Copy full SHA for b70c440
pytest_notebook/plugin.py
@@ -11,6 +11,7 @@
11
12
"""
13
import os
14
+from pathlib import Path
15
import shlex
16
17
import pytest
@@ -270,7 +271,7 @@ def pytest_collect_file(path, parent):
270
271
path.fnmatch(pat) for pat in other_args.get("nb_file_fnmatch", ["*.ipynb"])
272
):
273
try:
- return JupyterNbCollector.from_parent(parent, fspath=path)
274
+ return JupyterNbCollector.from_parent(parent, path=Path(path))
275
except AttributeError:
276
return JupyterNbCollector(path, parent)
277
0 commit comments