summaryrefslogtreecommitdiff
path: root/test/test_buffer.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2012-09-24 02:12:55 +0900
committerINADA Naoki <inada-n@klab.com>2012-09-24 02:12:55 +0900
commit60df5eadaf507594b73e5e5a887da1fc52cb3f32 (patch)
treef711227eeda469676496d626576dc674524a882a /test/test_buffer.py
parent96ed236c1d53e9ac4f3632ed82f15a1d6e0604da (diff)
downloadmsgpack-python-60df5eadaf507594b73e5e5a887da1fc52cb3f32.tar.gz
Warn when use_list is not specified.
Diffstat (limited to 'test/test_buffer.py')
-rw-r--r--test/test_buffer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_buffer.py b/test/test_buffer.py
index 01310a0..785fb60 100644
--- a/test/test_buffer.py
+++ b/test/test_buffer.py
@@ -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()