Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for pytest 7 #15

Open
scottj97 opened this issue Feb 4, 2022 · 0 comments
Open

Update for pytest 7 #15

scottj97 opened this issue Feb 4, 2022 · 0 comments

Comments

@scottj97
Copy link

scottj97 commented Feb 4, 2022

When using with pytest 7.0.0 I am seeing lots of deprecation warnings:

../../../build/python-venv/lib/python3.10/site-packages/_pytest/nodes.py:686: 511 warnings
../../../build/python-venv/lib/python3.10/site-packages/pytest_cram/__init__.py:55: 511 warnings
  The (fspath: py.path.local) argument to CramItem 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

../../../build/python-venv/lib/python3.10/site-packages/_pytest/nodes.py:146: 146 warnings
  <class 'pytest_cram.CramItem'> is not using a cooperative constructor and only takes {'fspath', 'parent'}.
  See https://docs.pytest.org/en/stable/deprecations.html#constructors-of-custom-pytest-node-subclasses-should-take-kwargs for more details.

These go away when I revert back to pytest 6.2.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant