1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
From: Colin Watson <cjwatson@debian.org>
Date: Tue, 16 Dec 2025 23:30:59 +0000
Subject: Fix configuration for pytest 9
Before this change, pytest 9 failed with:
```
TypeError: pyproject.toml: config option 'addopts' expects a list for type 'args', got str: '--cov --cov-report=html --cov-fail-under=100'
```
See https://github.com/pytest-dev/pytest/issues/13743.
Forwarded: https://github.com/sayanarijit/expandvars/pull/74
Bug-Debian: https://bugs.debian.org/1123239
Last-Update: 2025-12-16
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index 87ee999..3df3111 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39,4 +39,4 @@ build-backend = "hatchling.build"
path = "expandvars.py"
[tool.pytest]
-addopts = '--cov --cov-report=html --cov-fail-under=100'
+addopts = ["--cov", "--cov-report=html", "--cov-fail-under=100"]
|