Skip to content

Errors under pytest 8.0.0: A) The (fspath: py.path.local) argument to JupyterNbCollector is deprecated. B) PermissionError: [Errno 13] Permission denied #73

@amotl

Description

@amotl

Dear Chris,

when updating to pytest 8.0.0, released two days ago, through a corresponding PR submitted by Dependabot, ...

.... CI fails like:

ERROR tests/testdata/folder - pytest.PytestRemovedIn8Warning: The (fspath: py.path.local) argument to JupyterNbCollector is deprecated. Please use the (path: pathlib.Path) argument instead.
See https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-path
ERROR tests/testdata/snippet - pytest.PytestRemovedIn8Warning: The (fspath: py.path.local) argument to JupyterNbCollector is deprecated. Please use the (path: pathlib.Path) argument instead.
See https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-path

-- https://github.com/pyveci/pueblo/actions/runs/7701648260/job/20988180571?pr=63#step:5:154

This documentation probably has corresponding guidelines.

With kind regards,
Andreas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions