Skip to content

Commit 6387d0a

Browse files
committed
test: let (most) tests run with no network
`COVERAGE_PIP_ARGS=--no-build-isolation` lets (most) tests run with no network
1 parent 1d31e33 commit 6387d0a

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_venv.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ def coverage_command_fixture(request: pytest.FixtureRequest) -> str:
202202

203203

204204
@pytest.mark.xdist_group(name="virtualenv_test")
205+
@pytest.mark.skipif(
206+
bool(os.getenv("COVERAGE_PIP_ARGS")),
207+
reason="COVERAGE_PIP_ARGS setting means we shouldn't try pip",
208+
)
205209
class VirtualenvTest(CoverageTest):
206210
"""Tests of virtualenv considerations."""
207211

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ deps =
2424

2525
# Windows can't update the pip version with pip running, so use Python
2626
# to install things.
27-
install_command = python -m pip install -U {opts} {packages}
27+
install_command = python -m pip install -U {env:COVERAGE_PIP_ARGS} {opts} {packages}
2828

2929
passenv = *
3030
setenv =

0 commit comments

Comments
 (0)