diff options
author | INADA Naoki <inada-n@klab.com> | 2012-09-24 02:20:53 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2012-09-24 02:20:53 +0900 |
commit | c2a2d417f1e3a95992b41c3b24e6470077c99c6f (patch) | |
tree | 2bae530fd4a64efe1ba7aecc77e05622b75beb97 /test/test_case.py | |
parent | 60df5eadaf507594b73e5e5a887da1fc52cb3f32 (diff) | |
download | msgpack-python-c2a2d417f1e3a95992b41c3b24e6470077c99c6f.tar.gz |
Fix warnings in tests.
Diffstat (limited to 'test/test_case.py')
-rw-r--r-- | test/test_case.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_case.py b/test/test_case.py index b88714d..9cbf9bd 100644 --- a/test/test_case.py +++ b/test/test_case.py @@ -9,7 +9,7 @@ from msgpack import packb, unpackb def check(length, obj): v = packb(obj) assert_equal(len(v), length, "%r length should be %r but get %r" % (obj, length, len(v))) - assert_equal(unpackb(v), obj) + assert_equal(unpackb(v, use_list=0), obj) def test_1(): for o in [None, True, False, 0, 1, (1 << 6), (1 << 7) - 1, -1, @@ -71,7 +71,7 @@ def test_array32(): def match(obj, buf): assert_equal(packb(obj), buf) - assert_equal(unpackb(buf), obj) + assert_equal(unpackb(buf, use_list=0), obj) def test_match(): cases = [ @@ -99,7 +99,7 @@ def test_match(): match(v, p) def test_unicode(): - assert_equal(b'foobar', unpackb(packb('foobar'))) + assert_equal(b'foobar', unpackb(packb('foobar'), use_list=1)) if __name__ == '__main__': main() |