Skip to content

Commit 6dc3fb0

Browse files
committed
TST: fixup skip condition on limited-api test
1 parent af86cf4 commit 6dc3fb0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

extension_helpers/tests/test_setup_helpers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,7 @@ def test():
473473
@pytest.mark.parametrize("limited_api", (None, "cp310"))
474474
@pytest.mark.parametrize("extension_type", ("c", "pyx", "both"))
475475
def test_limited_api(tmp_path, config, envvar, limited_api, extension_type):
476-
477-
if sys.version_info < (3, 11):
478-
pytest.skip(
479-
"This test requires setuptools>=65.4 which is only available for Python 3.11 and later"
480-
)
476+
pytest.importorskip("setuptools", minversion="65.4")
481477

482478
package = _extension_test_package(
483479
tmp_path, extension_type=extension_type, include_numpy=True, include_setup_py=False

0 commit comments

Comments
 (0)