ngoldbaum commented on PR #50769:
URL: https://github.com/apache/arrow/pull/50769#issuecomment-5364367047

   A few CI jobs are hitting this error: 
   
   ```
   
   =================================== FAILURES 
===================================
   ________________________ test_dlpack_copy_is_writeable 
_________________________
   
       @check_bytes_allocated
       def test_dlpack_copy_is_writeable():
           if Version(np.__version__) < Version("2.1.0"):
               pytest.skip("Read-only DLPack flag requires numpy 2.1.0 or 
later")
       
           arr = pa.array([1, 2, 3], type=pa.int32())
       
           # Arrow arrays are immutable, so a shared export is read-only
           shared = np.from_dlpack(DLPackForwarder(arr, max_version=(1, 3)))
           assert not shared.flags.writeable
       
           # A copy is solely owned by the consumer, who may mutate it
           copied = np.from_dlpack(DLPackForwarder(arr, max_version=(1, 3), 
copy=True))
   >       assert copied.flags.writeable
   E       assert False
   E        +  where False =   C_CONTIGUOUS : True\n  F_CONTIGUOUS : True\n  
OWNDATA : False\n  WRITEABLE : False\n  ALIGNED : True\n  WRITEBACKIFCOPY : 
False\n.writeable
   E        +    where   C_CONTIGUOUS : True\n  F_CONTIGUOUS : True\n  OWNDATA 
: False\n  WRITEABLE : False\n  ALIGNED : True\n  WRITEBACKIFCOPY : False\n = 
array([1, 2, 3], dtype=int32).flags
   
   test-env/lib/python3.13/site-packages/pyarrow/tests/test_dlpack.py:231: 
AssertionError
   
   During handling of the above exception, another exception occurred:
   
   args = (), kwargs = {}
   
       @wraps(f)
       def wrapper(*args, **kwargs):
           gc.collect()
           allocated_bytes = pa.total_allocated_bytes()
           try:
               return f(*args, **kwargs)
           finally:
   >           assert pa.total_allocated_bytes() == allocated_bytes
   E           assert 4240 == 4112
   E            +  where 4240 = <cyfunction total_allocated_bytes at 
0x10f475d90>()
   E            +    where <cyfunction total_allocated_bytes at 0x10f475d90> = 
pa.total_allocated_bytes
   
   test-env/lib/python3.13/site-packages/pyarrow/tests/test_dlpack.py:73: 
AssertionError
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to