Skip to content

Commit

Permalink
Mark tests that may depend on external network
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Nov 19, 2024
1 parent a4fa01d commit 0b5b417
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setuptools/tests/test_core_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ def dist(self, request, monkeypatch, tmp_path):
config = retrieve_file(request.param)
yield setupcfg.apply_configuration(Distribution({}), config)

@pytest.mark.uses_network
def test_equivalent_output(self, tmp_path, dist):
"""Ensure output from setuptools is equivalent to the one from `pypa/wheel`"""
# Generate a METADATA file using pypa/wheel for comparison
Expand Down Expand Up @@ -455,6 +456,7 @@ def _normalize_metadata(msg: Message) -> str:
del msg["Requires-Dist"]
del msg["Provides-Extra"]

# Ensure consistent ord
for req in sorted(reqs):
msg["Requires-Dist"] = req
for extra in sorted(extras):
Expand Down

0 comments on commit 0b5b417

Please sign in to comment.