From 5432691ddde11d489dc0aea79f05fe22344f1a3e Mon Sep 17 00:00:00 2001 From: Andrew Gorcester Date: Tue, 6 Dec 2022 15:05:15 -0800 Subject: [PATCH] fix numerous mistakes --- tests/unit/test_fileio.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_fileio.py b/tests/unit/test_fileio.py index f1af8b5e3..dab272a90 100644 --- a/tests/unit/test_fileio.py +++ b/tests/unit/test_fileio.py @@ -416,6 +416,8 @@ def test_close_errors(self): writer.close() # Close a second time to verify it successfully does nothing. writer.close() + + self.assertTrue(writer.closed) # Try to write to closed file. with self.assertRaises(ValueError): writer.write(TEST_BINARY_DATA) @@ -768,7 +770,7 @@ def test_seek(self): def test_close(self): buff = self._make_sliding_buffer() buff.close() - self.assertTrue(buff.closed()) + self.assertTrue(buff.closed) with self.assertRaises(ValueError): buff.read() @@ -915,7 +917,7 @@ def test_close(self): reader = self._make_blob_reader(blob) reader.close() - self.assertRaises(self.closed) + self.assertTrue(reader.closed) with self.assertRaises(ValueError): reader.read()