Skip to content

Commit 519989f

Browse files
chore(deps-dev): bump pytest-cov from 6.3.0 to 7.1.0 (#1115)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Troeger <jens.troeger@light-speed.de>
1 parent 42b8090 commit 519989f

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,12 @@ repos:
160160
hooks:
161161
- id: actionlint
162162

163-
# On push to the remote, run all tests. Note that the `COVERAGE_CORE` variable is required
164-
# for Python 3.12+ to make sure Coverage uses the new Python monitoring module.
165-
# See also: https://blog.trailofbits.com/2025/05/01/making-pypis-test-suite-81-faster/#optimizing-coverage-with-python-312s-sysmonitoring
163+
# On push to the remote, run all tests.
166164
- repo: local
167165
hooks:
168166
- id: pytest
169167
name: Run unit tests
170-
entry: env COVERAGE_CORE=sysmon pytest --config-file pyproject.toml --cov-config pyproject.toml -m 'not integration and not performance' src/package/ tests/ docs/
168+
entry: pytest --config-file pyproject.toml --cov-config pyproject.toml -m 'not integration and not performance' src/package/ tests/ docs/
171169
language: python
172170
verbose: true
173171
always_run: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ check:
171171
.PHONY: test test-all test-unit test-integration test-performance
172172
test: test-unit
173173
test-unit:
174-
COVERAGE_CORE=sysmon python -m pytest --config-file pyproject.toml --cov-config pyproject.toml -m 'not integration and not performance' src/package/ tests/ docs/
174+
python -m pytest --config-file pyproject.toml --cov-config pyproject.toml -m 'not integration and not performance' src/package/ tests/ docs/
175175
test-integration:
176176
python -m pytest --config-file pyproject.toml --no-cov -m integration tests/
177177
test-performance:

pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,13 @@ hooks = [
6161
]
6262
# Note that the `custom_exit_code` and `env` plugins may currently be unmaintained.
6363
test = [
64-
"coverage ==7.6.12; python_version<'3.14'", # https://github.com/pypi/warehouse/pull/17872#issuecomment-2845932281
6564
"faker ==40.19.1",
6665
"hypothesis >=6.21.0,<6.152.10",
6766
"pytest >=9.0.3,<10.0.0",
6867
"pytest-benchmark ==5.2.3",
6968
"pytest-cases ==3.10.1",
7069
"pytest-custom_exit_code ==0.3.0",
71-
"pytest-cov ==6.3.0", # Uses: coverage[toml] >=7.5
70+
"pytest-cov ==7.1.0",
7271
"pytest-doctestplus ==1.7.1",
7372
"pytest-env ==1.6.0",
7473
]
@@ -266,10 +265,6 @@ env = [
266265
filterwarnings = [
267266
"error",
268267
"always::DeprecationWarning",
269-
# The CoverageWarning warning is issued in two contexts:
270-
# Python 3.10, 3.11: sys.monitoring isn't available in this version, using default core (no-sysmon)
271-
# Python 3.12, 3.13: sys.monitoring can't measure branches in this version, using default core (no-sysmon)
272-
"ignore:sys.monitoring isn't available in this version:coverage.exceptions.CoverageWarning",
273268
"always::coverage.exceptions.CoverageWarning",
274269
# https://docs.pytest.org/en/latest/how-to/failures.html#warning-about-unraisable-exceptions-and-unhandled-thread-exceptions
275270
"error::pytest.PytestUnraisableExceptionWarning",

0 commit comments

Comments
 (0)