Pillow/Tests/test_image_tostring.py
Brian Crowell 197885164b py3k: Backport Gohlke's tests to run on 2.6/2.7
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.
2013-01-10 08:46:39 -06:00

8 lines
163 B
Python

from tester import *
from PIL import Image
def test_sanity():
data = lena().tobytes() if py3 else lena().tostring()
assert_true(isinstance(data, bytes))