Skip to content

Commit 4626ad7

Browse files
committed
Update test_pandas.py
1 parent 6406840 commit 4626ad7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/io/json/test_pandas.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2188,7 +2188,13 @@ def test_read_json_dtype_backend(
21882188

21892189
@td.skip_if_no("pyarrow")
21902190
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
2191-
def test_read_json_pyarrow_with_dtype(self):
2191+
def test_read_json_pyarrow_with_dtype(self, request):
2192+
pa = pytest.importorskip("pyarrow")
2193+
version_tuple = tuple(map(int, pa.__version__.split('.')))
2194+
2195+
if version_tuple[0] < 16:
2196+
request.applymarker(pytest.mark.filterwarnings("ignore::DeprecationWarning"))
2197+
21922198
dtype = {"a": "int32[pyarrow]", "b": "int64[pyarrow]"}
21932199
json = b'{"a": 1, "b": 2}\n'
21942200

0 commit comments

Comments
 (0)