From 4c1e04fc9aa4be93054f24bea1c4b3d2ad664afa Mon Sep 17 00:00:00 2001 From: Leszek Hanusz Date: Tue, 30 Jun 2026 12:11:46 +0200 Subject: [PATCH 1/2] Bump pytest, pytest-asyncio and pytest-cov --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 25d00a84..2f200b20 100644 --- a/setup.py +++ b/setup.py @@ -17,10 +17,10 @@ tests_requires = [ "parse==1.20.2", "packaging>=21.0", - "pytest==8.3.4", - "pytest-asyncio==1.2.0", + "pytest==9.1.1", + "pytest-asyncio==1.4.0", "pytest-console-scripts==1.4.1", - "pytest-cov==6.0.0", + "pytest-cov==7.1.0", "vcrpy==8.2.1", "aiofiles", ] From c1bec3d9befced50f7e2ecb836994a844075ac37 Mon Sep 17 00:00:00 2001 From: Leszek Hanusz Date: Tue, 30 Jun 2026 12:32:23 +0200 Subject: [PATCH 2/2] 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. --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index dce3a360..a888d750 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,3 +23,6 @@ disallow_incomplete_defs = true [tool.black] target-version = ["py310"] + +[tool.coverage.run] +patch = ["subprocess"]