Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: Ensure consistency check in test runs even if expected error occ…
…urs (#402)
  • Loading branch information
andrewsg committed Apr 2, 2021
1 parent d52853b commit 416bcd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_fileio.py
Expand Up @@ -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])
Expand All @@ -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()
Expand Down

0 comments on commit 416bcd4

Please sign in to comment.