Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions tests/test_at.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@ def array(request: pytest.FixtureRequest) -> Array:
x = np.asarray([10.0, 20.0, 30.0])
x.flags.writeable = False
else:
library_name = library.value
try:
lib = import_module(library_name)
except ImportError:
pytest.skip(f"{library_name} is not installed")
x = lib.asarray([10.0, 20.0, 30.0])
xp = pytest.importorskip(library.value)
x = xp.asarray([10.0, 20.0, 30.0])
return x


Expand Down
Loading