diff options
author | INADA Naoki <inada-n@klab.com> | 2012-12-11 02:46:13 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2012-12-11 02:46:13 +0900 |
commit | 3478406537fc36badb2501d2110a2bceb48a45b6 (patch) | |
tree | 7d64c35aed421f1f7ec705a69a5db800c3f7c167 /test | |
parent | 477d3b152f5d36a48a8083b3720def2dd1f5d1a7 (diff) | |
download | msgpack-python-3478406537fc36badb2501d2110a2bceb48a45b6.tar.gz |
Fix tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_obj.py | 2 | ||||
-rw-r--r-- | test/test_sequnpack.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_obj.py b/test/test_obj.py index 881e627..c38d6dc 100644 --- a/test/test_obj.py +++ b/test/test_obj.py @@ -34,7 +34,7 @@ def test_decode_pairs_hook(): @raises(ValueError) def test_only_one_obj_hook(): - unpackb(b'', object_hook=lambda x: x, object_pairs_hook=lambda x: x) + unpackb(b'', object_hook=lambda x: x, object_pairs_hook=lambda x: x, use_list=1) @raises(ValueError) def test_bad_hook(): diff --git a/test/test_sequnpack.py b/test/test_sequnpack.py index dac36a8..eac0828 100644 --- a/test/test_sequnpack.py +++ b/test/test_sequnpack.py @@ -44,7 +44,7 @@ def test_foobar_skip(): assert 1, "ok" def test_maxbuffersize(): - nose.tools.assert_raises(ValueError, Unpacker, read_size=5, max_buffer_size=3) + nose.tools.assert_raises(ValueError, Unpacker, read_size=5, max_buffer_size=3, use_list=1) 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') |