We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74c67fe commit 1a6730bCopy full SHA for 1a6730b
1 file changed
python/tests/test_dataframe.py
@@ -1724,14 +1724,16 @@ def test_arrow_c_stream_capsule_released(ctx):
1724
1725
reader = pa.RecordBatchReader._import_from_c_capsule(capsule)
1726
reader.read_all()
1727
-
1728
- # After import, PyArrow takes ownership and resets the destructor
1729
- assert get_destructor(capsule) == 0
1730
+ # PyArrow may or may not clear the capsule's destructor; both behaviours are
+ # accepted temporarily while decoupling from PyArrow
+ _ = get_destructor(capsule)
1731
# Pointer remains retrievable
1732
assert get_ptr(capsule, b"arrow_array_stream")
1733
pyerr_clear()
1734
+ del reader
1735
+ gc.collect()
1736
+
1737
1738
def test_to_pylist(df):
1739
# Convert datafusion dataframe to Python list
0 commit comments