diff options
author | INADA Naoki <inada-n@klab.com> | 2012-09-24 02:12:55 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2012-09-24 02:38:54 +0900 |
commit | d503788e9537498ff2ed0da1f836dc4de6074981 (patch) | |
tree | 0b060a16d0b08ea4c22e7c057e41664acd00700c /test/test_sequnpack.py | |
parent | c3da8458681fc479233910d4c92dc84374e5efed (diff) | |
download | msgpack-python-d503788e9537498ff2ed0da1f836dc4de6074981.tar.gz |
Warn when use_list is not specified.
Conflicts:
test/test_sequnpack.py
Diffstat (limited to 'test/test_sequnpack.py')
-rw-r--r-- | test/test_sequnpack.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_sequnpack.py b/test/test_sequnpack.py index b1b80b2..21fc3be 100644 --- a/test/test_sequnpack.py +++ b/test/test_sequnpack.py @@ -5,7 +5,7 @@ from msgpack import Unpacker, BufferFull import nose def test_foobar(): - unpacker = Unpacker(read_size=3) + unpacker = Unpacker(read_size=3, use_list=1) unpacker.feed(b'foobar') assert unpacker.unpack() == ord(b'f') assert unpacker.unpack() == ord(b'o') @@ -28,10 +28,9 @@ def test_foobar(): k += 1 assert k == len(b'foobar') - def test_maxbuffersize(): nose.tools.assert_raises(ValueError, Unpacker, read_size=5, max_buffer_size=3) - unpacker = Unpacker(read_size=3, max_buffer_size=3) + unpacker = Unpacker(read_size=3, max_buffer_size=3, use_list=1) unpacker.feed(b'fo') nose.tools.assert_raises(BufferFull, unpacker.feed, b'ob') unpacker.feed(b'o') |