Skip to content

py.path.local warning rasied on pytest 7rc1 #1066

@Cadair

Description

@Cadair
============================================================= test session starts =============================================================
platform linux -- Python 3.10.2, pytest-7.0.0rc1, pluggy-1.0.0
Matplotlib: 3.5.1
Freetype: 2.6.1
rootdir: /home/stuart/Git/DKIST/dkist, configfile: setup.cfg
plugins: remotedata-0.3.2, openfiles-0.5.0, mock-3.6.1, filter-subpackage-0.1.1, doctestplus-0.11.2, cov-3.0.0, astropy-header-0.1.2, arraydiff-0.3, hypothesis-6.31.6, mpl-0.13, httpserver-1.0.3, anyio-3.4.0, forked-1.4.0, xdist-2.5.0, asdf-2.8.4.dev42+gef95881
collected 0 items / 1 error                                                                                                                   

=================================================================== ERRORS ====================================================================
________________________________________________________ ERROR collecting test session ________________________________________________________
../../../.virtualenvs/dkist/lib/python3.10/site-packages/pluggy/_hooks.py:265: in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
../../../.virtualenvs/dkist/lib/python3.10/site-packages/pluggy/_manager.py:80: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
../../asdf/pytest_asdf/plugin.py:318: in pytest_collect_file
    return AsdfSchemaFile.from_parent(
../../asdf/pytest_asdf/plugin.py:62: in from_parent
    result = super().from_parent(parent, fspath=fspath, **kwargs)
../../../.virtualenvs/dkist/lib/python3.10/site-packages/_pytest/nodes.py:630: in from_parent
    return super().from_parent(parent=parent, fspath=fspath, path=path, **kw)
../../../.virtualenvs/dkist/lib/python3.10/site-packages/_pytest/nodes.py:261: in from_parent
    return cls._create(parent=parent, **kw)
../../../.virtualenvs/dkist/lib/python3.10/site-packages/_pytest/nodes.py:140: in _create
    return super().__call__(*k, **kw)
../../../.virtualenvs/dkist/lib/python3.10/site-packages/_pytest/nodes.py:585: in __init__
    path = _imply_path(type(self), path, fspath=fspath)
../../../.virtualenvs/dkist/lib/python3.10/site-packages/_pytest/nodes.py:110: in _imply_path
    warnings.warn(
E   pytest.PytestRemovedIn8Warning: The (fspath: py.path.local) argument to AsdfSchemaFile is deprecated. Please use the (path: pathlib.Path) argument instead.
E   See https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-path
=========================================================== short test summary info ===========================================================
ERROR  - pytest.PytestRemovedIn8Warning: The (fspath: py.path.local) argument to AsdfSchemaFile is deprecated. Please use the (path: pathlib...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================== 1 error in 0.13s ===============================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions