Skip to content

Commit 723364e

Browse files
committed
TST: make RPATH test stricter
1 parent a7579ce commit 723364e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_wheel.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,15 @@ def test_link_library_in_subproject(venv, wheel_link_library_in_subproject):
192192

193193

194194
@pytest.mark.skipif(sys.platform in {'win32', 'cygwin'}, reason='requires RPATH support')
195-
def test_rpath(wheel_link_against_local_lib, tmp_path):
195+
def test_link_against_local_lib_rpath(wheel_link_against_local_lib, tmp_path):
196196
artifact = wheel.wheelfile.WheelFile(wheel_link_against_local_lib)
197197
artifact.extractall(tmp_path)
198198

199199
origin = '@loader_path' if sys.platform == 'darwin' else '$ORIGIN'
200200
expected = {f'{origin}/../.link_against_local_lib.mesonpy.libs', 'custom-rpath',}
201201

202202
rpath = set(mesonpy._rpath._get_rpath(tmp_path / 'example' / f'_example{EXT_SUFFIX}'))
203-
# Verify that rpath is a superset of the expected one: linking to
204-
# the Python runtime may require additional rpath entries.
205-
assert rpath >= expected
203+
assert rpath == expected
206204

207205

208206
@pytest.mark.skipif(sys.platform in {'win32', 'cygwin'}, reason='requires RPATH support')

0 commit comments

Comments
 (0)