Skip test that fails for PIL < 1.1.7

This commit is contained in:
Tony S Yu
2012-06-24 22:25:44 -04:00
parent f487221c3a
commit 9bcda27336
+3 -1
View File
@@ -72,7 +72,9 @@ def test_imread_uint16():
assert np.issubdtype(img.dtype, np.uint16)
assert_array_almost_equal(img, expected)
@skipif(not PIL_available)
# Big endian images not correctly loaded for PIL < 1.1.7
# Renable test when PIL 1.1.7 is more common.
@skipif(True)
def test_imread_uint16_big_endian():
expected = np.load(os.path.join(data_dir, 'chessboard_GRAY_U8.npy'))
img = imread(os.path.join(data_dir, 'chessboard_GRAY_U16B.tif'))