Skip to content

Commit 79b2104

Browse files
committed
Use coverage built-in subprocess support instead of coverage-enable-subprocess
See https://coverage.readthedocs.io/en/latest/subprocess.html
1 parent 5726a0c commit 79b2104

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ include = [
445445
]
446446
parallel = true
447447
branch = true
448+
patch = [ "subprocess" ]
448449

449450
[tool.coverage.paths]
450451
source = [

tox.ini

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ setenv =
8181
# Configuration to run with coverage similar to CI, e.g.
8282
# "tox -e py313-coverage".
8383
coverage: _PYTEST_TOX_COVERAGE_RUN=coverage run -m
84-
coverage: _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
85-
coverage: COVERAGE_FILE={toxinidir}/.coverage
86-
coverage: COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
8784

8885
doctesting: _PYTEST_TOX_POSARGS_DOCTESTING=doc/en
8986

@@ -100,6 +97,7 @@ setenv =
10097
xdist: _PYTEST_TOX_POSARGS_XDIST=-n auto
10198
extras = dev
10299
deps =
100+
coverage: coverage>=7.10
103101
doctesting: PyYAML
104102
exceptiongroup: exceptiongroup>=1.0.0rc8
105103
numpy: numpy>=1.19.4
@@ -111,7 +109,6 @@ deps =
111109
asynctest: asynctest
112110
xdist: pytest-xdist>=2.1.0
113111
xdist: -e .
114-
{env:_PYTEST_TOX_EXTRA_DEP:}
115112
# Can use the same wheel for all environments.
116113
package = wheel
117114
wheel_build_env = .pkg

0 commit comments

Comments
 (0)