@@ -158,7 +158,7 @@ def test_license_pep639(wheel_license_pep639):
158
158
''' ))
159
159
160
160
161
- @pytest .mark .skipif (sys .platform not in {'linux ' , 'darwin' , 'sunos5' }, reason = 'Not supported on this platform ' )
161
+ @pytest .mark .skipif (sys .platform in {'win32 ' , 'cygwin' }, reason = 'requires RPATH support ' )
162
162
def test_contents (package_library , wheel_library ):
163
163
artifact = wheel .wheelfile .WheelFile (wheel_library )
164
164
@@ -194,12 +194,12 @@ def test_link_library_in_subproject(venv, wheel_link_library_in_subproject):
194
194
assert int (output ) == 9
195
195
196
196
197
- @pytest .mark .skipif (sys .platform not in {'linux ' , 'darwin' , 'sunos5' }, reason = 'Not supported on this platform ' )
197
+ @pytest .mark .skipif (sys .platform in {'win32 ' , 'cygwin' }, reason = 'requires RPATH support ' )
198
198
def test_rpath (wheel_link_against_local_lib , tmp_path ):
199
199
artifact = wheel .wheelfile .WheelFile (wheel_link_against_local_lib )
200
200
artifact .extractall (tmp_path )
201
201
202
- origin = { 'linux' : '$ORIGIN' , 'darwin' : '@loader_path' , 'sunos5' : ' $ORIGIN'}[ sys . platform ]
202
+ origin = '@loader_path' if sys . platform == 'darwin' else ' $ORIGIN'
203
203
expected = {f'{ origin } /.link_against_local_lib.mesonpy.libs' , 'custom-rpath' ,}
204
204
205
205
rpath = set (mesonpy ._rpath ._get_rpath (tmp_path / f'example{ EXT_SUFFIX } ' ))
@@ -208,19 +208,18 @@ def test_rpath(wheel_link_against_local_lib, tmp_path):
208
208
assert rpath >= expected
209
209
210
210
211
- @pytest .mark .skipif (sys .platform not in {'linux ' , 'darwin' , 'sunos5' }, reason = 'Not supported on this platform ' )
211
+ @pytest .mark .skipif (sys .platform in {'win32 ' , 'cygwin' }, reason = 'requires RPATH support ' )
212
212
def test_uneeded_rpath (wheel_purelib_and_platlib , tmp_path ):
213
213
artifact = wheel .wheelfile .WheelFile (wheel_purelib_and_platlib )
214
214
artifact .extractall (tmp_path )
215
215
216
- origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' , 'sunos5' : '$ORIGIN' }[sys .platform ]
217
-
216
+ origin = '@loader_path' if sys .platform == 'darwin' else '$ORIGIN'
218
217
rpath = mesonpy ._rpath ._get_rpath (tmp_path / f'plat{ EXT_SUFFIX } ' )
219
218
for path in rpath :
220
219
assert origin not in path
221
220
222
221
223
- @pytest .mark .skipif (sys .platform not in {'linux ' , 'darwin' , 'sunos5' }, reason = 'Not supported on this platform ' )
222
+ @pytest .mark .skipif (sys .platform in {'win32 ' , 'cygwin' }, reason = 'requires executable bit support ' )
224
223
def test_executable_bit (wheel_executable_bit ):
225
224
artifact = wheel .wheelfile .WheelFile (wheel_executable_bit )
226
225
0 commit comments