diff --git a/Tests/test_arrow.py b/Tests/test_arrow.py index 68a4f96f0..f1ab5ab6d 100644 --- a/Tests/test_arrow.py +++ b/Tests/test_arrow.py @@ -105,3 +105,17 @@ def test_lifetime2(): img2 = img.copy() px = img2.load() assert isinstance(px[0, 0], int) + + +def test_release_schema(): + # these should not error out, valgrind should be clean + img = hopper('L') + schema = img.__arrow_c_schema__() + del(schema) + +def test_release_array(): + # these should not error out, valgrind should be clean + img = hopper('L') + array, schema = img.__arrow_c_array__() + del(array) + del(schema)