pytest-isort
pytest-isort copied to clipboard
pytest warning
PytestRemovedIn8Warning: The (fspath: py.path.local) argument to IsortItem 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
super().__init__(
python3.9/site-packages/_pytest/nodes.py:664: PytestWarning: IsortItem is an Item subclass and should not be a collector, however its bases File are collectors.
Please split the Collectors and the Item into separate node types.
Pytest Doc example: https://docs.pytest.org/en/latest/example/nonpython.html
example pull request on a plugin: https://github.com/asmeurer/pytest-flakes/pull/40/
warnings.warn(
I think this is related to https://github.com/asmeurer/pytest-flakes/pull/40/files
I will prepare a release today.
Release is out, please close issue if this solves the warning.