@@ -158,7 +158,7 @@ def test_license_pep639(wheel_license_pep639):
158158 ''' ))
159159
160160
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 ' )
162162def test_contents (package_library , wheel_library ):
163163 artifact = wheel .wheelfile .WheelFile (wheel_library )
164164
@@ -194,12 +194,12 @@ def test_link_library_in_subproject(venv, wheel_link_library_in_subproject):
194194 assert int (output ) == 9
195195
196196
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 ' )
198198def test_rpath (wheel_link_against_local_lib , tmp_path ):
199199 artifact = wheel .wheelfile .WheelFile (wheel_link_against_local_lib )
200200 artifact .extractall (tmp_path )
201201
202- origin = { 'linux' : '$ORIGIN' , 'darwin' : '@loader_path' , 'sunos5' : ' $ORIGIN'}[ sys . platform ]
202+ origin = '@loader_path' if sys . platform == 'darwin' else ' $ORIGIN'
203203 expected = {f'{ origin } /.link_against_local_lib.mesonpy.libs' , 'custom-rpath' ,}
204204
205205 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):
208208 assert rpath >= expected
209209
210210
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 ' )
212212def test_uneeded_rpath (wheel_purelib_and_platlib , tmp_path ):
213213 artifact = wheel .wheelfile .WheelFile (wheel_purelib_and_platlib )
214214 artifact .extractall (tmp_path )
215215
216- origin = {'linux' : '$ORIGIN' , 'darwin' : '@loader_path' , 'sunos5' : '$ORIGIN' }[sys .platform ]
217-
216+ origin = '@loader_path' if sys .platform == 'darwin' else '$ORIGIN'
218217 rpath = mesonpy ._rpath ._get_rpath (tmp_path / f'plat{ EXT_SUFFIX } ' )
219218 for path in rpath :
220219 assert origin not in path
221220
222221
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 ' )
224223def test_executable_bit (wheel_executable_bit ):
225224 artifact = wheel .wheelfile .WheelFile (wheel_executable_bit )
226225
0 commit comments