pytest-isort icon indicating copy to clipboard operation
pytest-isort copied to clipboard

pytest warning

Open steveoh opened this issue 3 years ago • 2 comments

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

steveoh avatar Feb 08 '22 00:02 steveoh

I will prepare a release today.

stephrdev avatar Feb 08 '22 05:02 stephrdev

Release is out, please close issue if this solves the warning.

stephrdev avatar Feb 08 '22 09:02 stephrdev