Skip to content

Commit 3d3f429

Browse files
committed
tests: avoid error if only a single run was run
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent 762d9be commit 3d3f429

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ test = [
6363
'setuptools >= 56.0.0; python_version == "3.10"',
6464
'setuptools >= 56.0.0; python_version == "3.11"',
6565
'setuptools >= 67.8.0; python_version >= "3.12"',
66+
"setuptools_scm >= 6",
6667
]
6768
typing = [
6869
"build[uv]",

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def local_pip(monkeypatch):
8080

8181
@pytest.fixture(autouse=True)
8282
def avoid_constraints(monkeypatch):
83-
monkeypatch.delenv("PIP_CONSTRAINT", raising=False)
84-
monkeypatch.delenv("UV_CONSTRAINT", raising=False)
83+
monkeypatch.delenv('PIP_CONSTRAINT', raising=False)
84+
monkeypatch.delenv('UV_CONSTRAINT', raising=False)
8585

8686

8787
@pytest.fixture(autouse=True, params=[False])

tests/constraints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ setuptools==42.0.0; python_version < "3.10"
55
setuptools==56.0.0; python_version == "3.10"
66
setuptools==56.0.0; python_version == "3.11"
77
setuptools==67.8.0; python_version >= "3.12"
8+
setuptools_scm==6.3.2; python_version < "3.12"
89
tomli==1.1.0
910
# virtualenv==20.0.35
1011
wheel==0.36.0

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pass_env =
100100
DIFF_AGAINST
101101
set_env =
102102
commands =
103-
coverage combine {toxworkdir}
103+
- coverage combine {toxworkdir}
104104
coverage report --skip-covered --show-missing -i
105105
coverage xml -o {toxworkdir}/coverage.xml -i
106106
coverage html -d {toxworkdir}/htmlcov -i

0 commit comments

Comments
 (0)