From 5bab56ca16f6b93d457de9cd592a8b4be78a0f2b Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 17 Nov 2016 15:37:50 +0100 Subject: [PATCH] Fix test. --- Tests/test_file_libtiff.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/test_file_libtiff.py b/Tests/test_file_libtiff.py index 04b36f8df..bf1840e1e 100644 --- a/Tests/test_file_libtiff.py +++ b/Tests/test_file_libtiff.py @@ -370,7 +370,8 @@ class TestFileLibTiff(LibTiffTestCase): fn = im.fp.fileno() os.fstat(fn) - im.load() # this should close it. + im.load() + im.close() # this should close it. self.assertRaises(OSError, lambda: os.fstat(fn)) im = None # this should force even more closed. self.assertRaises(OSError, lambda: os.fstat(fn))