mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
197885164b
Most of the differences are in tobytes/tostring naming and expected behavior of the bytes() constructor. The latter was usually easy to fix with the right bytes literal. This is a good preview of what will have to happen in the Python 3 code.
15 lines
224 B
Python
15 lines
224 B
Python
from tester import *
|
|
|
|
from PIL import Image
|
|
|
|
def test_sanity():
|
|
|
|
im = lena()
|
|
type_repr = repr(type(im.getim()))
|
|
|
|
if py3:
|
|
assert_true("PyCapsule" in type_repr)
|
|
|
|
assert_true(isinstance(im.im.id, int))
|
|
|