Skip reserved byte

This commit is contained in:
INADA Naoki 2013-02-21 16:02:33 +09:00
parent 9524033194
commit ff3342aeed
2 changed files with 171 additions and 135 deletions

8
test/test_reserved.py Normal file
View 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) == []