Skip to content

Commit 265132e

Browse files
committed
Move skip_if_no and pyarrow import to test_clib_virtualfile_from_vectors
1 parent d88accd commit 265132e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pygmt/tests/test_clib_virtualfile_from_vectors.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
from pygmt.clib.session import DTYPES_NUMERIC
1212
from pygmt.exceptions import GMTInvalidInput
1313
from pygmt.helpers import GMTTempFile
14+
from pygmt.helpers.testing import skip_if_no
15+
16+
try:
17+
import pyarrow as pa
18+
except ImportError:
19+
pa = None
1420

1521

1622
@pytest.fixture(scope="module", name="dtypes")

pygmt/tests/test_clib_virtualfiles.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@
1010
from pygmt.clib.session import DTYPES_NUMERIC
1111
from pygmt.exceptions import GMTCLibError, GMTInvalidInput
1212
from pygmt.helpers import GMTTempFile
13-
from pygmt.helpers.testing import skip_if_no
1413
from pygmt.tests.test_clib import mock
1514

16-
try:
17-
import pyarrow as pa
18-
except ImportError:
19-
pa = None
20-
2115
POINTS_DATA = Path(__file__).parent / "data" / "points.txt"
2216

2317

0 commit comments

Comments
 (0)