summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2013-02-21 16:02:33 +0900
committerINADA Naoki <inada-n@klab.com>2013-02-21 16:02:33 +0900
commitff3342aeedb9d21897b0b7275dd68d781f149995 (patch)
tree4a88c44e4a4bd3fe944f2b412b85a8600baf03ec /test
parent952403319478ac4a95c4d5d9c85908ba6dda5672 (diff)
downloadmsgpack-python-ff3342aeedb9d21897b0b7275dd68d781f149995.tar.gz
Skip reserved byte
Diffstat (limited to 'test')
-rw-r--r--test/test_reserved.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_reserved.py b/test/test_reserved.py
new file mode 100644
index 0000000..56b4455
--- /dev/null
+++ b/test/test_reserved.py
@@ -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) == []