@@ -140,7 +140,7 @@ def test_contents_license_file(wheel_license_file):
140
140
assert artifact .read ('license_file-1.0.0.dist-info/LICENSE.custom' ).rstrip () == b'Hello!'
141
141
142
142
143
- @pytest .mark .skipif (platform . system () not in {'Linux ' , 'Darwin ' }, reason = 'Not supported on this platform' )
143
+ @pytest .mark .skipif (sys . platform not in {'linux ' , 'darwin ' }, reason = 'Not supported on this platform' )
144
144
def test_contents (package_library , wheel_library ):
145
145
artifact = wheel .wheelfile .WheelFile (wheel_library )
146
146
@@ -154,14 +154,14 @@ def test_contents(package_library, wheel_library):
154
154
}
155
155
156
156
157
- @pytest .mark .skipif (platform . system () not in {'Linux ' , 'Darwin ' }, reason = 'Not supported on this platform' )
157
+ @pytest .mark .skipif (sys . platform not in {'linux ' , 'darwin ' }, reason = 'Not supported on this platform' )
158
158
def test_local_lib (venv , wheel_link_against_local_lib ):
159
159
venv .pip ('install' , wheel_link_against_local_lib )
160
160
output = venv .python ('-c' , 'import example; print(example.example_sum(1, 2))' )
161
161
assert int (output ) == 3
162
162
163
163
164
- @pytest .mark .skipif (platform . system () not in {'Linux ' , 'Darwin ' }, reason = 'Not supported on this platform' )
164
+ @pytest .mark .skipif (sys . platform not in {'linux ' , 'darwin ' }, reason = 'Not supported on this platform' )
165
165
def test_rpath (wheel_link_against_local_lib , tmp_path ):
166
166
artifact = wheel .wheelfile .WheelFile (wheel_link_against_local_lib )
167
167
artifact .extractall (tmp_path )
@@ -174,7 +174,7 @@ def test_rpath(wheel_link_against_local_lib, tmp_path):
174
174
assert '@loader_path/.link_against_local_lib.mesonpy.libs' in dylib .rpath
175
175
176
176
177
- @pytest .mark .skipif (platform . system () not in {'Linux ' , 'Darwin ' }, reason = 'Not supported on this platform' )
177
+ @pytest .mark .skipif (sys . platform not in {'linux ' , 'darwin ' }, reason = 'Not supported on this platform' )
178
178
def test_uneeded_rpath (wheel_purelib_and_platlib , tmp_path ):
179
179
artifact = wheel .wheelfile .WheelFile (wheel_purelib_and_platlib )
180
180
artifact .extractall (tmp_path )
@@ -190,7 +190,7 @@ def test_uneeded_rpath(wheel_purelib_and_platlib, tmp_path):
190
190
assert 'mesonpy.libs' not in rpath
191
191
192
192
193
- @pytest .mark .skipif (platform . system () not in {'Linux ' , 'Darwin ' }, reason = 'Not supported on this platform' )
193
+ @pytest .mark .skipif (sys . platform not in {'linux ' , 'darwin ' }, reason = 'Not supported on this platform' )
194
194
def test_executable_bit (wheel_executable_bit ):
195
195
artifact = wheel .wheelfile .WheelFile (wheel_executable_bit )
196
196
@@ -249,7 +249,7 @@ def test_purelib_platlib_split(package_purelib_platlib_split, tmp_path):
249
249
project .wheel (tmp_path )
250
250
251
251
252
- @pytest .mark .skipif (platform . system () != 'Darwin ' , reason = 'macOS specific test' )
252
+ @pytest .mark .skipif (sys . platform != 'darwin ' , reason = 'macOS specific test' )
253
253
@pytest .mark .parametrize (('arch' ), ['x86_64' , 'arm64' ])
254
254
def test_archflags_envvar (package_purelib_and_platlib , monkeypatch , tmp_path , arch ):
255
255
try :
0 commit comments