mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-31 03:36:43 +03:00
Tests for destructors of the PyCapsules
This commit is contained in:
parent
244dded7a8
commit
dbe0304bb3
|
@ -105,3 +105,17 @@ def test_lifetime2():
|
||||||
img2 = img.copy()
|
img2 = img.copy()
|
||||||
px = img2.load()
|
px = img2.load()
|
||||||
assert isinstance(px[0, 0], int)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user