mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-28 08:04:12 +00:00
Use new msgpack spec by default. (#386)
This commit is contained in:
parent
de320488ae
commit
7e9905bdfa
11 changed files with 75 additions and 126 deletions
|
|
@ -17,7 +17,7 @@ def test_unpack_buffer():
|
|||
|
||||
|
||||
def test_unpack_bytearray():
|
||||
buf = bytearray(packb(("foo", "bar")))
|
||||
buf = bytearray(packb((b"foo", b"bar")))
|
||||
obj = unpackb(buf, use_list=1)
|
||||
assert [b"foo", b"bar"] == obj
|
||||
expected_type = bytes
|
||||
|
|
@ -25,7 +25,7 @@ def test_unpack_bytearray():
|
|||
|
||||
|
||||
def test_unpack_memoryview():
|
||||
buf = bytearray(packb(("foo", "bar")))
|
||||
buf = bytearray(packb((b"foo", b"bar")))
|
||||
view = memoryview(buf)
|
||||
obj = unpackb(view, use_list=1)
|
||||
assert [b"foo", b"bar"] == obj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue