summaryrefslogtreecommitdiff
path: root/test/test_case.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2012-09-24 02:20:53 +0900
committerINADA Naoki <inada-n@klab.com>2012-09-24 02:39:02 +0900
commitc280e589884f2b4afd064cffd08b0f353db93036 (patch)
treec88ab3fb3ed44b98b27bbcff1f4092202c0e57c3 /test/test_case.py
parentd503788e9537498ff2ed0da1f836dc4de6074981 (diff)
downloadmsgpack-python-c280e589884f2b4afd064cffd08b0f353db93036.tar.gz
Fix warnings in tests.
Diffstat (limited to 'test/test_case.py')
-rw-r--r--test/test_case.py6
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()