We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fc1797 commit daababcCopy full SHA for daababc
python/tests/test_dataframe.py
@@ -1708,8 +1708,8 @@ def test_arrow_c_stream_capsule_released(ctx):
1708
get_destructor.restype = ctypes.c_void_p
1709
get_destructor.argtypes = [ctypes.py_object]
1710
1711
- # The capsule should not have a registered destructor
1712
- assert get_destructor(capsule) == 0
+ # DataFrame.__arrow_c_stream__ uses PyCapsule::new, registering a destructor
+ assert get_destructor(capsule) != 0
1713
1714
get_ptr = ctypes.pythonapi.PyCapsule_GetPointer
1715
get_ptr.restype = ctypes.c_void_p
0 commit comments