From 66805cabdf9c37918992918f2cb3639ed7d61f46 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sun, 12 Jul 2015 21:47:48 -0500 Subject: [PATCH] Try fixing the remaining unclosed error --- skimage/_shared/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/_shared/testing.py b/skimage/_shared/testing.py index 779cbe5c..603cfaaa 100644 --- a/skimage/_shared/testing.py +++ b/skimage/_shared/testing.py @@ -93,8 +93,8 @@ def roundtrip(img, plugin, suffix): if not '.' in suffix: suffix = '.' + suffix temp_file = NamedTemporaryFile(suffix=suffix, delete=False) - temp_file.close() fname = temp_file.name + temp_file.close() io.imsave(fname, img, plugin=plugin) new = io.imread(fname, plugin=plugin) try: