Warn when use_list is not specified.

This commit is contained in:
INADA Naoki 2012-09-24 02:12:55 +09:00
parent 96ed236c1d
commit 60df5eadaf
7 changed files with 37 additions and 23 deletions

View file

@ -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()