summaryrefslogtreecommitdiff
path: root/test/test_case.py
diff options
context:
space:
mode:
authorJoel Nothman <joel.nothman@gmail.com>2012-10-04 11:31:40 +1000
committerJoel Nothman <joel.nothman@gmail.com>2012-10-04 11:31:40 +1000
commitdf4f23779d14f2b41e9a5ecca0a06e21385cc603 (patch)
treebf03928d8eb40e9f5391eb49676001a32b83f39e /test/test_case.py
parente7c51d9089e9270ce197c00a6af1c60e45f36e97 (diff)
parentd5f99959cc2ec393c13fc9e44714351272bac7fc (diff)
downloadmsgpack-python-df4f23779d14f2b41e9a5ecca0a06e21385cc603.tar.gz
Merge commit 'd5f9995' into read_bytes
Conflicts: msgpack/_msgpack.pyx
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()