Skip to content

Commit

Permalink
Correctly skip the tests if pyarrow is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Oct 14, 2024
1 parent 1864556 commit 54160bf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pygmt/tests/test_clib_vectors_to_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
import pytest
from pygmt.clib.conversion import vectors_to_arrays

try:
importlib.util.find_spec("pyarrow")
_HAS_PYARROW = True
except ImportError:
_HAS_PYARROW = False
_HAS_PYARROW = bool(importlib.util.find_spec("pyarrow"))


def _check_arrays(arrays):
Expand Down

0 comments on commit 54160bf

Please sign in to comment.