Skip to content

Commit 9eb39b0

Browse files
committed
TST: make tests robust against the NINJA env variable being set
Fixes #314.
1 parent 7e090a7 commit 9eb39b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_pep517.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
@pytest.mark.parametrize('system_patchelf', ['patchelf', None], ids=['patchelf', 'nopatchelf'])
2222
@pytest.mark.parametrize('ninja', [None, '1.8.1', '1.8.3'], ids=['noninja', 'oldninja', 'newninja'])
2323
def test_get_requires_for_build_wheel(monkeypatch, package, system_patchelf, ninja):
24+
# the NINJA environment variable affects the ninja executable lookup and breaks the test
25+
monkeypatch.delenv('NINJA', raising=False)
26+
2427
def which(prog: str) -> bool:
2528
if prog == 'patchelf':
2629
return system_patchelf

0 commit comments

Comments
 (0)