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 a029191
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 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,8 @@
import pytest
from pygmt.clib.conversion import vectors_to_arrays

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


def _check_arrays(arrays):
Expand Down

0 comments on commit a029191

Please sign in to comment.