Skip to content

Commit

Permalink
fix: Ensure consistency check in test runs even if expected error occ…
Browse files Browse the repository at this point in the history
…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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def test_seek(self):
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
pos = buff.tell() pos = buff.tell()
buff.seek(len(TEST_BINARY_DATA) + 1) 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. # Read 8 bytes, test seek backwards, read again, and flush.
self.assertEqual(buff.read(8), TEST_BINARY_DATA[:8]) self.assertEqual(buff.read(8), TEST_BINARY_DATA[:8])
Expand All @@ -401,7 +401,7 @@ def test_seek(self):
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
pos = buff.tell() pos = buff.tell()
buff.seek(0) buff.seek(0)
self.assertEqual(pos, buff.tell()) self.assertEqual(pos, buff.tell())


def test_close(self): def test_close(self):
buff = SlidingBuffer() buff = SlidingBuffer()
Expand Down

0 comments on commit 416bcd4

Please sign in to comment.