Skip to content

Commit

Permalink
reopen file each time
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbandes authored Jul 21, 2023
1 parent 90a6182 commit 2bd87fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/mcap/tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,7 @@ def test_no_summary_not_seeking(tmpdir: Path):

with open(filepath, "rb") as f:
assert len(list(NonSeekingReader(f).iter_messages())) == 200
with open(filepath, "rb") as f:
assert len(list(NonSeekingReader(f).iter_attachments())) == 1
with open(filepath, "rb") as f:
assert len(list(NonSeekingReader(f).iter_metadata())) == 1

0 comments on commit 2bd87fb

Please sign in to comment.