Coverage pollutes the test output with these warnings: CoverageWarning: Module build was previously imported, but not measured (module-not-measured) The warning is probably related to tox-current-env. We need try to solve the warning, but for now we simply disable coverage. --- build-1.3.0/tox.ini.orig +++ build-1.3.0/tox.ini @@ -28,9 +28,7 @@ PYTHONWARNDEFAULTENCODING = 1 TEST_STATUS_DIR = {envtmpdir} commands = - pytest -ra --cov --cov-config pyproject.toml \ - --cov-report=html:{envdir}/htmlcov --cov-context=test \ - --cov-report=xml:{toxworkdir}/coverage.{envname}.xml {posargs:-n auto} + pytest -ra {posargs:-n auto} dependency_groups = test