From 02b3a1c44ff19a179138b031bd0815ccd78d0b59 Mon Sep 17 00:00:00 2001 From: 09Catho Date: Tue, 10 Nov 2026 22:20:15 +0530 Subject: [PATCH] GH-55458: Mark NumPy-dependent tests --- python/pyarrow/tests/test_array.py | 1 + python/pyarrow/tests/test_convert_builtin.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/python/pyarrow/tests/test_array.py b/python/pyarrow/tests/test_array.py index 63c0eb0bea4e..ec107423e201 100644 --- a/python/pyarrow/tests/test_array.py +++ b/python/pyarrow/tests/test_array.py @@ -4557,6 +4557,7 @@ def test_swapped_byte_order_fails(numpy_native_dtype): pa.StructArray.from_arrays([np_arr], names=['a']) +@pytest.mark.numpy def test_non_cpu_array(): cuda = pytest.importorskip("pyarrow.cuda", exc_type=ImportError) ctx = cuda.Context(0) diff --git a/python/pyarrow/tests/test_convert_builtin.py b/python/pyarrow/tests/test_convert_builtin.py index 3ac7be88eaa0..746aef8dcd86 100644 --- a/python/pyarrow/tests/test_convert_builtin.py +++ b/python/pyarrow/tests/test_convert_builtin.py @@ -2384,6 +2384,7 @@ def test_auto_chunking_list_of_binary(): assert arr.chunk(1).to_pylist() == [['x' * 1024]] * 2 +@pytest.mark.numpy @pytest.mark.large_memory def test_auto_chunking_list_like(): item = np.ones((2**28,), dtype='uint8') @@ -2452,6 +2453,7 @@ def test_nested_auto_chunking(ty, char): } +@pytest.mark.numpy @pytest.mark.large_memory def test_array_from_pylist_data_overflow(): # Regression test for ARROW-12983 @@ -2474,6 +2476,7 @@ def test_array_from_pylist_data_overflow(): assert len(arr.chunks) > 1 +@pytest.mark.numpy @pytest.mark.slow @pytest.mark.large_memory def test_array_from_pylist_offset_overflow():