mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-08 05:21:01 +00:00
parent
7a8ce0f9ca
commit
f6f6f328eb
2 changed files with 12 additions and 1 deletions
|
|
@ -93,6 +93,15 @@ def test_readbytes():
|
|||
assert unpacker.unpack() == ord(b"a")
|
||||
assert unpacker.unpack() == ord(b"r")
|
||||
|
||||
# Issue 352
|
||||
u = Unpacker()
|
||||
u.feed(b"x")
|
||||
assert bytes(u.read_bytes(1)) == b"x"
|
||||
with raises(StopIteration):
|
||||
next(u)
|
||||
u.feed(b"\1")
|
||||
assert next(u) == 1
|
||||
|
||||
|
||||
def test_issue124():
|
||||
unpacker = Unpacker()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue