Use sys.executable
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@@ -33,7 +34,7 @@ project_with_environment_asserts = test_projects.new_c_project(
|
|||||||
|
|
||||||
|
|
||||||
def test(tmp_path):
|
def test(tmp_path):
|
||||||
python_echo = 'python -c "import sys; print(*sys.argv[1:])"'
|
python_echo = f'"{sys.executable}" -c "import sys; print(*sys.argv[1:])"'
|
||||||
project_dir = tmp_path / "project"
|
project_dir = tmp_path / "project"
|
||||||
project_with_environment_asserts.generate(project_dir)
|
project_with_environment_asserts.generate(project_dir)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
from cibuildwheel.environment import parse_environment
|
from cibuildwheel.environment import parse_environment
|
||||||
|
|
||||||
PYTHON_ECHO = 'python -c "import sys; print(*sys.argv[1:])"'
|
PYTHON_ECHO = f'"{sys.executable}" -c "import sys; print(*sys.argv[1:])"'
|
||||||
|
|
||||||
|
|
||||||
def test_basic_parsing():
|
def test_basic_parsing():
|
||||||
|
|||||||
Reference in New Issue
Block a user