From 28a4fcd37e993c90594c565f630731a1bf0bc4f4 Mon Sep 17 00:00:00 2001 From: Connelly Barnes Date: Sun, 30 Aug 2015 21:20:28 -0400 Subject: [PATCH] fix permissions issue in test_pil.py function test_png_round_trip() --- skimage/io/tests/test_pil.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skimage/io/tests/test_pil.py b/skimage/io/tests/test_pil.py index 3d0bfe54..3a53d340 100644 --- a/skimage/io/tests/test_pil.py +++ b/skimage/io/tests/test_pil.py @@ -42,9 +42,11 @@ def setup_module(self): def test_png_round_trip(): f = NamedTemporaryFile(suffix='.png') fname = f.name + f.close() I = np.eye(3) imsave(fname, I) Ip = img_as_float(imread(fname)) + os.remove(fname) assert np.sum(np.abs(Ip-I)) < 1e-3 def test_imread_flatten():