Skip to content

Commit 093f876

Browse files
committed
TST: use the same spelling for pytest.mark.skipif() reason
1 parent a3d86ce commit 093f876

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_wheel.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_sharedlib_in_package(venv, wheel_sharedlib_in_package):
186186
assert int(output) == 42
187187

188188

189-
@pytest.mark.skipif(MESON_VERSION < (1, 3, 0), reason='Meson version too old')
189+
@pytest.mark.skipif(MESON_VERSION < (1, 3, 0), reason='meson too old')
190190
def test_link_library_in_subproject(venv, wheel_link_library_in_subproject):
191191
venv.pip('install', wheel_link_library_in_subproject)
192192
output = venv.python('-c', 'import foo; print(foo.example_sum(3, 6))')
@@ -306,7 +306,7 @@ def test_subprojects(package_subproject, tmp_path):
306306

307307

308308
# Requires Meson 1.2.0, see https://github.com/mesonbuild/meson/pull/11909.
309-
@pytest.mark.skipif(MESON_VERSION < (1, 1, 99), reason='Meson version too old')
309+
@pytest.mark.skipif(MESON_VERSION < (1, 1, 99), reason='meson too old')
310310
@pytest.mark.parametrize(('arg'), ['--skip-subprojects', '--skip-subprojects=dep'])
311311
def test_skip_subprojects(package_subproject, tmp_path, arg):
312312
filename = mesonpy.build_wheel(tmp_path, {'install-args': [arg]})
@@ -320,7 +320,7 @@ def test_skip_subprojects(package_subproject, tmp_path, arg):
320320

321321

322322
# Requires Meson 1.3.0, see https://github.com/mesonbuild/meson/pull/11745.
323-
@pytest.mark.skipif(MESON_VERSION < (1, 2, 99), reason='Meson version too old')
323+
@pytest.mark.skipif(MESON_VERSION < (1, 2, 99), reason='meson too old')
324324
@pytest.mark.skipif(NOGIL_BUILD, reason='Free-threaded CPython does not support the limited API')
325325
@pytest.mark.xfail('__pypy__' in sys.builtin_module_names, reason='PyPy does not support the abi3 platform tag for wheels')
326326
def test_limited_api(wheel_limited_api):
@@ -332,7 +332,7 @@ def test_limited_api(wheel_limited_api):
332332

333333

334334
# Requires Meson 1.3.0, see https://github.com/mesonbuild/meson/pull/11745.
335-
@pytest.mark.skipif(MESON_VERSION < (1, 2, 99), reason='Meson version too old')
335+
@pytest.mark.skipif(MESON_VERSION < (1, 2, 99), reason='meson too old')
336336
@pytest.mark.skipif(NOGIL_BUILD, reason='Free-threaded CPython does not support the limited API')
337337
@pytest.mark.xfail('__pypy__' in sys.builtin_module_names, reason='PyPy does not use special modules suffix for stable ABI')
338338
def test_limited_api_bad(package_limited_api, tmp_path):
@@ -342,7 +342,7 @@ def test_limited_api_bad(package_limited_api, tmp_path):
342342

343343

344344
# Requires Meson 1.3.0, see https://github.com/mesonbuild/meson/pull/11745.
345-
@pytest.mark.skipif(MESON_VERSION < (1, 2, 99), reason='Meson version too old')
345+
@pytest.mark.skipif(MESON_VERSION < (1, 2, 99), reason='meson too old')
346346
def test_limited_api_disabled(package_limited_api, tmp_path):
347347
filename = mesonpy.build_wheel(tmp_path, {'setup-args': ['-Dpython.allow_limited_api=false']})
348348
artifact = wheel.wheelfile.WheelFile(tmp_path / filename)
@@ -401,7 +401,7 @@ def test_custom_target_install_dir(package_custom_target_dir, tmp_path):
401401
}
402402

403403
# On Linux, Meson 1.10 or later is required, see https://github.com/mesonbuild/meson/pull/15141
404-
@pytest.mark.skipif(sys.platform == 'linux' and MESON_VERSION < (1, 9, 99), reason='Meson version too old')
404+
@pytest.mark.skipif(sys.platform == 'linux' and MESON_VERSION < (1, 9, 99), reason='meson too old')
405405
@pytest.mark.skipif(sys.platform not in {'linux', 'darwin'}, reason='Not supported on this platform')
406406
def test_cmake_subproject(wheel_cmake_subproject):
407407
artifact = wheel.wheelfile.WheelFile(wheel_cmake_subproject)

0 commit comments

Comments
 (0)