Skip to content

Commit ffb409b

Browse files
fix #714 - use sys.executable instead of plain python
1 parent fb31eca commit ffb409b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/test_integration.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def test_pretend_version_accepts_bad_string(
132132
monkeypatch.setenv(PRETEND_KEY, "dummy")
133133
wd.write("setup.py", SETUP_PY_PLAIN)
134134
assert wd.get_version(write_to="test.py") == "dummy"
135-
assert wd("python setup.py --version") == "0.0.0"
135+
pyver = wd([sys.executable, "setup.py", "--version"])
136+
assert pyver == "0.0.0"
136137

137138

138139
def test_own_setup_fails_on_old_python(monkeypatch: pytest.MonkeyPatch) -> None:

0 commit comments

Comments
 (0)