diff --git a/tests/integration/test_manylinux.py b/tests/integration/test_manylinux.py index 45a73875..09d1c9a9 100644 --- a/tests/integration/test_manylinux.py +++ b/tests/integration/test_manylinux.py @@ -412,7 +412,10 @@ def test_build_wheel_with_binary_executable( # # Both executables should work when called from the installed bin directory. assert docker_exec(docker_python, ["/usr/local/bin/testprogram", "4"]) == "16\n" - assert docker_exec(docker_python, ["/usr/local/bin/testprogram_nodeps", "4"]) == "16\n" + assert ( + docker_exec(docker_python, ["/usr/local/bin/testprogram_nodeps", "4"]) + == "16\n" + ) # testprogram should be a Python shim since we had to rewrite its RPATH. assert ( @@ -422,7 +425,9 @@ def test_build_wheel_with_binary_executable( # testprogram_nodeps should be the unmodified ELF binary. assert ( - docker_exec(docker_python, ["head", "-c4", "/usr/local/bin/testprogram_nodeps"]) + docker_exec( + docker_python, ["head", "-c4", "/usr/local/bin/testprogram_nodeps"] + ) == "\x7fELF" ) diff --git a/tests/integration/testpackage/setup.py b/tests/integration/testpackage/setup.py index 1702d598..a3e90d82 100644 --- a/tests/integration/testpackage/setup.py +++ b/tests/integration/testpackage/setup.py @@ -2,11 +2,21 @@ import subprocess - from setuptools import setup -subprocess.check_call(("gcc", "testpackage/testprogram.c", "-lgsl", "-lgslcblas", "-o", "testpackage/testprogram")) -subprocess.check_call(("gcc", "testpackage/testprogram_nodeps.c", "-o", "testpackage/testprogram_nodeps")) +subprocess.check_call( + ( + "gcc", + "testpackage/testprogram.c", + "-lgsl", + "-lgslcblas", + "-o", + "testpackage/testprogram", + ) +) +subprocess.check_call( + ("gcc", "testpackage/testprogram_nodeps.c", "-o", "testpackage/testprogram_nodeps") +) setup( name="testpackage", @@ -19,5 +29,7 @@ # # Note that using scripts=[] doesn't work here since setuptools expects the # scripts to be text and tries to decode them using UTF-8. - data_files=[("../scripts", ["testpackage/testprogram", "testpackage/testprogram_nodeps"])], + data_files=[ + ("../scripts", ["testpackage/testprogram", "testpackage/testprogram_nodeps"]) + ], )