diff --git a/tests/integration/test_manylinux.py b/tests/integration/test_manylinux.py index 4e7ad201..58a8c46a 100644 --- a/tests/integration/test_manylinux.py +++ b/tests/integration/test_manylinux.py @@ -440,9 +440,17 @@ def test_build_wheel_with_binary_executable( ) # testprogram should be a Python shim since we had to rewrite its RPATH. + python_version = docker_exec( + docker_python, + [ + "python", + "-c", + "import sys; print(f'python{sys.version_info.major}.{sys.version_info.minor}')", + ], + ).strip() assert ( docker_exec(docker_python, ["head", "-n1", "/usr/local/bin/testprogram"]) - == "#!/usr/local/bin/python\n" + == f"#!/usr/local/bin/{python_version}\n" ) # testprogram_nodeps should be the unmodified ELF binary.