BUG: Fix PIL test on big endian.

This commit is contained in:
Stefan van der Walt
2012-06-11 00:37:31 -07:00
parent d32268e1c5
commit 8141f39a2b
+4 -1
View File
@@ -65,7 +65,7 @@ def test_bilevel():
def test_imread_uint16():
expected = np.load(os.path.join(data_dir, 'chessboard_GRAY_U8.npy'))
img = imread(os.path.join(data_dir, 'chessboard_GRAY_U16.tif'))
assert img.dtype == np.uint16
assert np.issubdtype(img.dtype, np.uint16)
assert_array_almost_equal(img, expected)
@skipif(not PIL_available)
@@ -97,3 +97,6 @@ class TestSave:
else:
x = (x * 255).astype(dtype)
yield self.roundtrip, dtype, x
if __name__ == "__main__":
run_module_suite()