quaint-telephone-89068
12/07/2022, 5:25 PMpytest==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
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 until 4.0.0 https://pytest-cov.readthedocs.io/en/latest/changelog.html#id1
Pants hardcodes the pytest-cov version less than `3.1`:
pants/src/python/pants/backend/python/subsystems/pytest.py
Line 79 in </pantsbuild/pants/commit/bca1b5a4ae311511fe87ff0dd3ccecc32955d024|bca1b5a>
Pants version
2.15.0a1
OS
Linux
pantsbuild/pants