Skip to content

Commit

Permalink
TST: skip limited-api test if setuptools not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Aug 28, 2023
1 parent 9b50ad4 commit 978af4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions numpy/core/tests/test_limited_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

from numpy.testing import IS_WASM

try:
import setuptools
except ModuleNotFoundError:
pytest.skip("setuptools required", allow_module_level=True)

@pytest.mark.skipif(IS_WASM, reason="Can't start subprocess")
@pytest.mark.xfail(
Expand Down

0 comments on commit 978af4a

Please sign in to comment.