diff --git a/skimage/io/tests/test_pil.py b/skimage/io/tests/test_pil.py index f54fa9e3..68a21cf0 100644 --- a/skimage/io/tests/test_pil.py +++ b/skimage/io/tests/test_pil.py @@ -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()