diff options
Diffstat (limited to 'morphlib/bins_tests.py')
-rw-r--r-- | morphlib/bins_tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/bins_tests.py b/morphlib/bins_tests.py index d7ed1656..edefb092 100644 --- a/morphlib/bins_tests.py +++ b/morphlib/bins_tests.py @@ -137,8 +137,9 @@ class ChunkTests(BinsTest): def test_does_not_compress_artifact(self): self.create_chunk(['bin']) - with gzip.open(self.chunk_file) as f: - self.assertRaises(IOError, f.read) + f = gzip.open(self.chunk_file) + self.assertRaises(IOError, f.read) + f.close() class ExtractTests(unittest.TestCase): |