From da1a519b63c56e6bf94b2ffb54d95db40a52ffd4 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 7 Sep 2026 13:01:13 +0200 Subject: [PATCH] GH-12594: [Python][GPU] Remove inherently crashy CUDA test Remove a CUDA test that tries to access an invalid pointer (after the owning resource was deallocated). On old CUDA setups it used to raise an exception: ``` Cuda error 1 in function 'cuMemcpyDtoH': [CUDA_ERROR_INVALID_VALUE] invalid argument ``` but more recently it has simply started crashing. --- python/pyarrow/tests/test_cuda.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/python/pyarrow/tests/test_cuda.py b/python/pyarrow/tests/test_cuda.py index b995c2dd5f7b..e65784887ce7 100644 --- a/python/pyarrow/tests/test_cuda.py +++ b/python/pyarrow/tests/test_cuda.py @@ -297,14 +297,6 @@ def test_foreign_buffer(): del hbuf fbuf.copy_to_host() - # test deallocating the host buffer memory making it inaccessible - hbuf = cuda.new_host_buffer(size * dtype.itemsize) - fbuf = ctx.foreign_buffer(hbuf.address, hbuf.size) - del hbuf - with pytest.raises(pa.ArrowIOError, - match=('Cuda error ')): - fbuf.copy_to_host() - @pytest.mark.parametrize("size", [0, 1, 1000]) def test_CudaBuffer(size):