mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Disable debug messages during g4 tiff tests
This commit is contained in:
parent
64ba20743a
commit
a72d46d314
|
@ -117,13 +117,13 @@ def test_g4_tiff_bytesio():
|
||||||
def xtest_g4_tiff_fail(): # UNDONE fails badly, unknown reason
|
def xtest_g4_tiff_fail(): # UNDONE fails badly, unknown reason
|
||||||
"""The 128x128 lena image fails for some reason. Investigating"""
|
"""The 128x128 lena image fails for some reason. Investigating"""
|
||||||
|
|
||||||
Image.DEBUG = True
|
Image.DEBUG = 0
|
||||||
file = "Tests/images/lena_g4.tif"
|
file = "Tests/images/lena_g4.tif"
|
||||||
im = Image.open(file)
|
im = Image.open(file)
|
||||||
|
|
||||||
assert_equal(im.size, (128,128))
|
assert_equal(im.size, (128,128))
|
||||||
_assert_noerr(im)
|
_assert_noerr(im)
|
||||||
Image.DEBUG = False
|
Image.DEBUG = 0
|
||||||
|
|
||||||
def test_g4_eq_png():
|
def test_g4_eq_png():
|
||||||
""" Checking that we're actually getting the data that we expect"""
|
""" Checking that we're actually getting the data that we expect"""
|
||||||
|
@ -134,7 +134,7 @@ def test_g4_eq_png():
|
||||||
|
|
||||||
def test_g4_write():
|
def test_g4_write():
|
||||||
"""Checking to see that the saved image is the same as what we wrote"""
|
"""Checking to see that the saved image is the same as what we wrote"""
|
||||||
Image.DEBUG = True
|
Image.DEBUG = 0
|
||||||
|
|
||||||
file = "Tests/images/lena_g4_500.tif"
|
file = "Tests/images/lena_g4_500.tif"
|
||||||
orig = Image.open(file)
|
orig = Image.open(file)
|
||||||
|
@ -151,4 +151,4 @@ def test_g4_write():
|
||||||
|
|
||||||
assert_false(orig.tobytes() == reread.tobytes())
|
assert_false(orig.tobytes() == reread.tobytes())
|
||||||
|
|
||||||
Image.DEBUG = False
|
Image.DEBUG = 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user