We do not need to check coverage for this project. --- platformdirs-4.14.8/pyproject.toml.orig +++ platformdirs-4.14.8/pyproject.toml @@ -64,10 +64,7 @@ ] test = [ "appdirs==1.4.4", - "covdefaults>=2.3", - "diff-cover>=10.2", "pytest>=9.0.2", - "pytest-cov>=7", "pytest-mock>=3.15.1", ] type = [ --- platformdirs-4.14.8/tox.toml.orig +++ platformdirs-4.14.8/tox.toml @@ -31,32 +31,9 @@ "--junitxml", "{env_tmp_dir}{/}junit.xml", { replace = "posargs", default = [ - "--no-cov-on-fail", - "--cov", - "{env_site_packages_dir}{/}platformdirs", - "--cov", - "{tox_root}{/}tests", - "--cov-config", - "{tox_root}{/}pyproject.toml", - "--cov-context", - "test", - "--cov-report", - "term-missing:skip-covered", - "--cov-report", - "html:{env_tmp_dir}{/}htmlcov", - "--cov-report", - "xml:{env_tmp_dir}{/}coverage.xml", ], extend = true }, "tests", ], - { replace = "posargs", default = [ - [ - "diff-cover", - "--compare-branch", - { replace = "env", name = "DIFF_AGAINST", default = "origin/main" }, - "{env_tmp_dir}{/}coverage.xml", - ], - ], extend = true }, ] [env_pkg_base] --- platformdirs-4.14.8/tests/test_testing.py.orig +++ platformdirs-4.14.8/tests/test_testing.py @@ -12,7 +12,6 @@ from typing import TYPE_CHECKING, Final import pytest -from coverage import Coverage import platformdirs from platformdirs.android import Android @@ -295,8 +294,6 @@ assert platformdirs.user_config_path("app") == root / "user_config" / "app" _enter_isolation(root / "child") assert platformdirs.user_config_path("app") == root / "user_config" / "app" - if (coverage := Coverage.current()) is not None: - coverage.save() @pytest.mark.usefixtures("_unix_root")