mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
py3k: FIX: TGA missing o8 declaration
Plus, TGA was eligible for a round-trip test in test_imagefile. It has one now.
This commit is contained in:
parent
254f0cf674
commit
8035b1a76a
|
@ -133,6 +133,7 @@ class TgaImageFile(ImageFile.ImageFile):
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# Write TGA file
|
# Write TGA file
|
||||||
|
|
||||||
|
o8 = _binary.o8
|
||||||
o16 = _binary.o16le
|
o16 = _binary.o16le
|
||||||
o32 = _binary.o32le
|
o32 = _binary.o32le
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ def test_parser():
|
||||||
assert_image_equal(*roundtrip("PPM"))
|
assert_image_equal(*roundtrip("PPM"))
|
||||||
assert_image_equal(*roundtrip("TIFF"))
|
assert_image_equal(*roundtrip("TIFF"))
|
||||||
assert_image_equal(*roundtrip("XBM"))
|
assert_image_equal(*roundtrip("XBM"))
|
||||||
|
assert_image_equal(*roundtrip("TGA"))
|
||||||
|
|
||||||
im1, im2 = roundtrip("JPEG") # lossy compression
|
im1, im2 = roundtrip("JPEG") # lossy compression
|
||||||
assert_image(im1, im2.mode, im2.size)
|
assert_image(im1, im2.mode, im2.size)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user