Skip to content

Commit 826979d

Browse files
committed
Fix deprecated string[pyarrow_numpy] in test_to_numpy_pandas_string
Xref pandas-dev/pandas#60152
1 parent c74e4af commit 826979d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pygmt/tests/test_clib_to_numpy.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,10 @@ def test_to_numpy_pandas_numeric_with_na(dtype, expected_dtype):
371371
"U10",
372372
"string[python]",
373373
pytest.param("string[pyarrow]", marks=skip_if_no(package="pyarrow")),
374-
pytest.param("string[pyarrow_numpy]", marks=skip_if_no(package="pyarrow")),
374+
pytest.param(
375+
pd.StringDtype(storage="pyarrow", na_value=np.nan),
376+
marks=skip_if_no(package="pyarrow"),
377+
),
375378
],
376379
)
377380
def test_to_numpy_pandas_string(dtype):

0 commit comments

Comments
 (0)