Skip to content

Mark new tests as uses_network #4982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions newsfragments/4982.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mark more tests failing without Internet access as ``uses_network``.
3 changes: 3 additions & 0 deletions setuptools/tests/integration/test_pbr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import subprocess

import pytest


@pytest.mark.uses_network
def test_pbr_integration(pbr_package, venv):
"""Ensure pbr packages install."""
cmd = [
Expand Down
1 change: 1 addition & 0 deletions setuptools/tests/test_develop.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def install_develop(src_dir, target):
platform.python_implementation() == 'PyPy',
reason="https://github.com/pypa/setuptools/issues/1202",
)
@pytest.mark.uses_network
def test_namespace_package_importable(self, tmpdir):
"""
Installing two packages sharing the same namespace, one installed
Expand Down
1 change: 1 addition & 0 deletions setuptools/tests/test_editable_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,7 @@ def test_compat_install(tmp_path, venv):
assert "cannot import name 'subpackage'" in out


@pytest.mark.uses_network
def test_pbr_integration(pbr_package, venv, editable_opts):
"""Ensure editable installs work with pbr, issue #3500"""
cmd = [
Expand Down
Loading