You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We recently upgraded to pytest==7.2.0 and noticed we can no longer use test --use-coverage.
pytest.PytestDeprecationWarning: The hookimpl CovPlugin.pytest_configure_node uses old-style configuration options (marks or attributes).
Please use the pytest.hookimpl(optionalhook=True) decorator instead
to configure the hooks.
See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
at /home/mpcusack/.cache/pants/named_caches/pex_root/venvs/s/4ea0b489/venv/lib/python3.8/site-packages/pytest_cov/plugin.py:256
Describe the bug
We recently upgraded to
pytest==7.2.0
and noticed we can no longer usetest --use-coverage
.https://docs.pytest.org/en/7.2.x/changelog.html#pytest-7-2-0-2022-10-23 deprecated a hook style in pytest-dev/pytest#4562. This wasn't adopted in
pytest-cov
until4.0.0
https://pytest-cov.readthedocs.io/en/latest/changelog.html#id1Pants hardcodes the
pytest-cov
version less than3.1
:pants/src/python/pants/backend/python/subsystems/pytest.py
Line 79 in bca1b5a
Pants version
2.15.0a1
OS
Linux
The text was updated successfully, but these errors were encountered: