Closed FranzForstmayr closed 1 year ago
I was starting to provide more context here and a full traceback and... Then I realized I'm getting pytest-cov==2.12.1 installed for some reason. I guess another dep is holding it back. I'll follow up when I figure out what.
Are you getting an old version as well?
No, pytest-cov==3.0.0
is installed (as requested by dependency specification).
The new hook setup was implemented in v4 https://github.com/pytest-dev/pytest-cov/commit/b077753f5d9d200815fe500d0ef23e306784e65b and released on September 28 https://pypi.org/project/pytest-cov/4.0.0/.
https://github.com/scikit-rf/scikit-rf/pull/784 updates to 4.0 and removes the deprecation warning ignore. We'll see how it works out after the workflow runs are approved.
My issue seems to be around pip and trouble with picking the coverage pre-release conflicting with the pytest-cov dependency on coverage[toml]
where the extra is the trigger for trouble I believe. Reported as https://github.com/pypa/pip/issues/11565.
With that merged, are you comfortable closing this @FranzForstmayr?
Yes of course! Thanks for the fast fix! :)
Summary
Using
pytest
7.2 with currentpytest-cov
produces aDeprecationWarning
Expected vs actual result.
Test fails with:
when treating warnings as errors
Versions
Tox output
Config
This line fixes the error, when added to filterwarnings
Code
Not required