We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34c0753 commit faabc3dCopy full SHA for faabc3d
1 file changed
rust/arrow-pyarrow-integration-testing/tests/test_sql.py
@@ -40,12 +40,16 @@ def test_primitive_rust(self):
40
"""
41
Rust -> Python -> Rust
42
43
+ old_allocated = pyarrow.total_allocated_bytes()
44
+
45
def double(array):
46
array = array.to_pylist()
47
return pyarrow.array([x * 2 if x is not None else None for x in array])
-
48
49
is_correct = arrow_pyarrow_integration_testing.double_py(double)
50
self.assertTrue(is_correct)
51
+ # No leak of C++ memory
52
+ self.assertEqual(old_allocated, pyarrow.total_allocated_bytes())
53
54
def test_string_python(self):
55
0 commit comments