diff --git a/skimage/io/tests/test_pil.py b/skimage/io/tests/test_pil.py index cd4e8939..e8e855d8 100644 --- a/skimage/io/tests/test_pil.py +++ b/skimage/io/tests/test_pil.py @@ -230,9 +230,9 @@ class TestSaveTIF: def roundtrip(self, dtype, x, compress): with temporary_file(suffix='.tif') as fname: if dtype == np.bool: - expected = ['low contrast'] + expected = ['low contrast|unclosed file'] else: - expected = [] + expected = ['unclosed file|\A\Z'] with expected_warnings(expected): if compress > 0: imsave(fname, x, compress=compress)