Skip to content
Permalink
Browse files
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 416bcd42406ec57e51f04e5d9b0c58509f80520c
Showing with 2 additions and 2 deletions.
  1. +2 −2 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()

0 comments on commit 416bcd4

Please sign in to comment.