Skip to content

Commit a029191

Browse files
committed
Correctly skip the tests if pyarrow is not installed
1 parent 1864556 commit a029191

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pygmt/tests/test_clib_vectors_to_arrays.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111
import pytest
1212
from pygmt.clib.conversion import vectors_to_arrays
1313

14-
try:
15-
importlib.util.find_spec("pyarrow")
16-
_HAS_PYARROW = True
17-
except ImportError:
18-
_HAS_PYARROW = False
14+
pa = importlib.util.find_spec("pyarrow")
15+
_HAS_PYARROW = not pa
1916

2017

2118
def _check_arrays(arrays):

0 commit comments

Comments
 (0)