Skip to content

Commit 3df9175

Browse files
authored
Merge pull request #204 from pypa/fix/setuptools-71
Relax test for build requirements from setuptools
2 parents 6b57973 + 9efaa97 commit 3df9175

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_call_hooks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,9 @@ def test_path_pollution():
207207
def test_setup_py():
208208
hooks = get_hooks("setup-py")
209209
with modified_env({"PYTHONPATH": BUILDSYS_PKGS}):
210-
res = hooks.get_requires_for_build_wheel({})
211-
# Some versions of setuptools list setuptools itself here
212-
res = [x for x in res if x != "setuptools"]
213-
assert res == ["wheel"]
210+
res = set(hooks.get_requires_for_build_wheel({}))
211+
# Depending on the version of setuptools, it may be both, just wheel, or neither
212+
assert res.issubset({"setuptools", "wheel"})
214213

215214

216215
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)