Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
black
  • Loading branch information
methane committed May 24, 2022
commit 1531b7980befdd6cbde376501ba35d53a15e2327
8 changes: 4 additions & 4 deletions test/test_sequnpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ def test_maxbuffersize():


def test_maxbuffersize_file():
buff = io.BytesIO(packb(b"a"*10) + packb(b"a"*100))
buff = io.BytesIO(packb(b"a" * 10) + packb(b"a" * 100))
unpacker = Unpacker(buff, read_size=1, max_buffer_size=99)
assert unpacker.unpack() == b"a"*10
#assert unpacker.unpack() == b"a"*100
assert unpacker.unpack() == b"a" * 10
# assert unpacker.unpack() == b"a"*100
with raises(BufferFull):
unpacker.unpack() == b"a"*100
unpacker.unpack() == b"a" * 100


def test_readbytes():
Expand Down