mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-07 13:01:01 +00:00
Warn when use_list is not specified.
Conflicts: test/test_sequnpack.py
This commit is contained in:
parent
c3da845868
commit
d503788e95
7 changed files with 36 additions and 23 deletions
|
|
@ -9,8 +9,8 @@ def test_unpack_buffer():
|
|||
from array import array
|
||||
buf = array('b')
|
||||
buf.fromstring(packb(('foo', 'bar')))
|
||||
obj = unpackb(buf)
|
||||
assert_equal((b'foo', b'bar'), obj)
|
||||
obj = unpackb(buf, use_list=1)
|
||||
assert_equal([b'foo', b'bar'], obj)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue