Skip to content

Commit

Permalink
tests: avoid error if only a single run was run
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Mar 7, 2025
1 parent 762d9be commit 3d9b539
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ test = [
'setuptools >= 56.0.0; python_version == "3.10"',
'setuptools >= 56.0.0; python_version == "3.11"',
'setuptools >= 67.8.0; python_version >= "3.12"',
"setuptools_scm >= 6",
]
typing = [
"build[uv]",
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def local_pip(monkeypatch):

@pytest.fixture(autouse=True)
def avoid_constraints(monkeypatch):
monkeypatch.delenv("PIP_CONSTRAINT", raising=False)
monkeypatch.delenv("UV_CONSTRAINT", raising=False)
monkeypatch.delenv('PIP_CONSTRAINT', raising=False)
monkeypatch.delenv('UV_CONSTRAINT', raising=False)


@pytest.fixture(autouse=True, params=[False])
Expand Down
1 change: 1 addition & 0 deletions tests/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ setuptools==42.0.0; python_version < "3.10"
setuptools==56.0.0; python_version == "3.10"
setuptools==56.0.0; python_version == "3.11"
setuptools==67.8.0; python_version >= "3.12"
setuptools_scm==7.1.0; python_version < "3.12"
tomli==1.1.0
# virtualenv==20.0.35
wheel==0.36.0
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pass_env =
DIFF_AGAINST
set_env =
commands =
coverage combine {toxworkdir}
- coverage combine {toxworkdir}
coverage report --skip-covered --show-missing -i
coverage xml -o {toxworkdir}/coverage.xml -i
coverage html -d {toxworkdir}/htmlcov -i
Expand Down

0 comments on commit 3d9b539

Please # to comment.