Skip to content

Commit b70c440

Browse files
committed
fix PytestRemovedIn9Warning
- already reported and same patch as in chrisjsewell#74
1 parent f5b4783 commit b70c440

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_notebook/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
"""
1313
import os
14+
from pathlib import Path
1415
import shlex
1516

1617
import pytest
@@ -270,7 +271,7 @@ def pytest_collect_file(path, parent):
270271
path.fnmatch(pat) for pat in other_args.get("nb_file_fnmatch", ["*.ipynb"])
271272
):
272273
try:
273-
return JupyterNbCollector.from_parent(parent, fspath=path)
274+
return JupyterNbCollector.from_parent(parent, path=Path(path))
274275
except AttributeError:
275276
return JupyterNbCollector(path, parent)
276277

0 commit comments

Comments
 (0)