Closed nbro10 closed 11 months ago
Updating coverage to version 7.3.1
seems to solve the issue. In any case, I'm reporting it here, just in case someone else faces this issue too.
Maybe a developer can explain more in detail why this is happening and why this solves the issue?!
Summary
I'm getting the following error/warning, when attempting to run
pytest
with pytest-cov, in a Python 3.11.2 environmentCommand:
poetry run pytest tests --cov=my_package --verbose --durations=15 --capture=no --numprocesses=auto --strict-markers --no-success-flaky-report -p no:unraisableexception
Full logs
Expected vs actual result
Reproducer
Versions
Python 3.11.2 (or 3.11.5) pytest 6.2.5 pytest-cov 2.11.1 coverage 5.5 (with extra toml)
Config
pyproject.toml
Code
Just create e.g. a test package
tests
with a test filetest_something.py
, with a dummy test function