Skip to content

Commit cba03e8

Browse files
committed
test: fix patchelf in test_header_only_library
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 184f2d3 commit cba03e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_hook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import subprocess
3+
import sysconfig
34

45
import pytest
56

@@ -19,7 +20,7 @@ def test_header_only_library(env, tmp_path, packages, monkeypatch):
1920

2021
# Remove rpath, as meson insists on setting it
2122
if os.name == 'posix':
22-
uses_library_path = os.path.join(env.scheme['platlib'], 'uses_library.cpython-313-x86_64-linux-gnu.so')
23+
uses_library_path = os.path.join(env.scheme['platlib'], 'uses_library' + sysconfig.get_config_var('EXT_SUFFIX'))
2324
subprocess.check_call(['patchelf', '--remove-rpath', uses_library_path])
2425

2526
# Make sure uses_library.foo() works

0 commit comments

Comments
 (0)