Skip to content

Commit

Permalink
fix test_build_wheel_with_binary_executable to calculate the right ex…
Browse files Browse the repository at this point in the history
…pected python path name
  • Loading branch information
ppham-nv committed Oct 10, 2024
1 parent 8c9f44e commit fdfd7d0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/integration/test_manylinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fdfd7d0

Please sign in to comment.