Skip to content

Commit 8b20ef6

Browse files
authored
Bump pytest versions (#603)
* Bump pytest, pytest-asyncio and pytest-cov * Add coverage subprocess patch for pytest-cov 7.x pytest-cov 7.0 removed automatic subprocess coverage measurement. Add explicit subprocess patch config to restore coverage collection for tests using pytest-console-scripts in subprocess launch mode.
1 parent 3bb7168 commit 8b20ef6

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ disallow_incomplete_defs = true
2323

2424
[tool.black]
2525
target-version = ["py310"]
26+
27+
[tool.coverage.run]
28+
patch = ["subprocess"]

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
tests_requires = [
1818
"parse==1.20.2",
1919
"packaging>=21.0",
20-
"pytest==8.3.4",
21-
"pytest-asyncio==1.2.0",
20+
"pytest==9.1.1",
21+
"pytest-asyncio==1.4.0",
2222
"pytest-console-scripts==1.4.1",
23-
"pytest-cov==6.0.0",
23+
"pytest-cov==7.1.0",
2424
"vcrpy==8.2.1",
2525
"aiofiles",
2626
]

0 commit comments

Comments
 (0)