summaryrefslogtreecommitdiff
path: root/test/test_pack.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2012-10-01 01:34:58 +0900
committerINADA Naoki <inada-n@klab.com>2012-10-01 01:34:58 +0900
commitd5f99959cc2ec393c13fc9e44714351272bac7fc (patch)
tree6ba8d44dedf97e3d723115b81a0154239c878b6f /test/test_pack.py
parente016b3dca0d8ca71fa54ffadfa1e5d9f3e4b3f06 (diff)
downloadmsgpack-python-d5f99959cc2ec393c13fc9e44714351272bac7fc.tar.gz
Fix some test failure.
Diffstat (limited to 'test/test_pack.py')
-rw-r--r--test/test_pack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_pack.py b/test/test_pack.py
index ff1eeef..21c2bd7 100644
--- a/test/test_pack.py
+++ b/test/test_pack.py
@@ -99,9 +99,9 @@ def testArraySize(sizes=[0, 5, 50, 1000]):
bio.write(packer.pack(i))
bio.seek(0)
- unpacker = Unpacker(bio)
+ unpacker = Unpacker(bio, use_list=1)
for size in sizes:
- assert unpacker.unpack() == tuple(range(size))
+ assert unpacker.unpack() == list(range(size))
def testMapSize(sizes=[0, 5, 50, 1000]):
bio = six.BytesIO()
@@ -115,7 +115,7 @@ def testMapSize(sizes=[0, 5, 50, 1000]):
bio.seek(0)
unpacker = Unpacker(bio)
for size in sizes:
- assert unpacker.unpack() == {i: i * 2 for i in range(size)}
+ assert unpacker.unpack() == dict((i, i * 2) for i in range(size))