mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
8e332eb3b0
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
20 lines
426 B
Python
20 lines
426 B
Python
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
from .helper import hopper
|
|
|
|
|
|
def test_sanity() -> None:
|
|
im = hopper()
|
|
|
|
type_repr = repr(type(im.getim()))
|
|
assert "PyCapsule" in type_repr
|
|
|
|
with pytest.warns(DeprecationWarning):
|
|
assert isinstance(im.im.id, int)
|
|
|
|
with pytest.warns(DeprecationWarning):
|
|
ptrs = dict(im.im.unsafe_ptrs)
|
|
assert ptrs.keys() == {"image8", "image32", "image"}
|