From 416bcd42406ec57e51f04e5d9b0c58509f80520c Mon Sep 17 00:00:00 2001 From: Andrew Gorcester Date: Fri, 2 Apr 2021 14:26:07 -0700 Subject: [PATCH] fix: Ensure consistency check in test runs even if expected error occurs (#402) --- tests/unit/test_fileio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_fileio.py b/tests/unit/test_fileio.py index 8056c045f..0ac16ab24 100644 --- a/tests/unit/test_fileio.py +++ b/tests/unit/test_fileio.py @@ -388,7 +388,7 @@ def test_seek(self): with self.assertRaises(ValueError): pos = buff.tell() buff.seek(len(TEST_BINARY_DATA) + 1) - self.assertEqual(pos, buff.tell()) + self.assertEqual(pos, buff.tell()) # Read 8 bytes, test seek backwards, read again, and flush. self.assertEqual(buff.read(8), TEST_BINARY_DATA[:8]) @@ -401,7 +401,7 @@ def test_seek(self): with self.assertRaises(ValueError): pos = buff.tell() buff.seek(0) - self.assertEqual(pos, buff.tell()) + self.assertEqual(pos, buff.tell()) def test_close(self): buff = SlidingBuffer()