mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-11 15:01:06 +00:00
Skip reserved byte
This commit is contained in:
parent
9524033194
commit
ff3342aeed
2 changed files with 171 additions and 135 deletions
8
test/test_reserved.py
Normal file
8
test/test_reserved.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import msgpack
|
||||
|
||||
reserved_bytes = b"\xc1\xc4\xc5\xc6\xc7\xc8\xc9\xd4\xd5\xd6\xd7\xd8\xd9"
|
||||
|
||||
def test_skip_reserved():
|
||||
packed_list = msgpack.packb([])
|
||||
for b in reserved_bytes:
|
||||
assert msgpack.unpackb(b+packed_list, use_list=1) == []
|
||||
Loading…
Add table
Add a link
Reference in a new issue