testing/test_regressions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/test_regressions.py b/testing/test_regressions.py index 6bd5246..4333124 100644 --- a/testing/test_regressions.py +++ b/testing/test_regressions.py @@ -2,6 +2,7 @@ from __future__ import annotations import pprint import subprocess +import os import sys from importlib.metadata import distribution from importlib.metadata import EntryPoint @@ -53,6 +54,9 @@ def test_pkginfo_noscmroot(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> N @pytest.mark.issue(164) +@pytest.mark.skipif( + os.getenv("NO_INTERNET") is not None, reason="Requires Internet", +) def test_pip_download(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: monkeypatch.chdir(tmp_path) subprocess.check_call([sys.executable, "-m", "pip", "download", "lz4==0.9.0"])