| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/devel/py-setuptools_scm/files/ |
Upload File : |
Avoid hardcoded Python binary.
--- testing/test_integration.py.orig 2022-02-10 17:16:34 UTC
+++ testing/test_integration.py
@@ -119,7 +119,7 @@ def test_pretend_version_accepts_bad_string(monkeypatc
monkeypatch.setenv(PRETEND_KEY, "dummy")
wd.write("setup.py", SETUP_PY_PLAIN)
assert wd.get_version(write_to="test.py") == "dummy"
- assert wd("python setup.py --version") == "0.0.0"
+ assert wd("%%PYTHON_CMD%% setup.py --version") == "0.0.0"
def test_own_setup_fails_on_old_python(monkeypatch):