diff options
author | INADA Naoki <inada-n@klab.com> | 2012-09-24 03:10:37 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2012-09-24 03:10:37 +0900 |
commit | 1526316a0803c233a6752aff1bab6e951447d12a (patch) | |
tree | 1705ccd3828c981791b2a0ce1debfbcc9f598a82 /test/test_pack.py | |
parent | d13f10c02e06b0f3c138b1726cfa8b1a31529d64 (diff) | |
parent | 477d3b152f5d36a48a8083b3720def2dd1f5d1a7 (diff) | |
download | msgpack-python-1526316a0803c233a6752aff1bab6e951447d12a.tar.gz |
Merge branch '0.2-maint'
Conflicts:
msgpack/_msgpack.pyx
Diffstat (limited to 'test/test_pack.py')
-rw-r--r-- | test/test_pack.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_pack.py b/test/test_pack.py index 9bd2b32..6af87fd 100644 --- a/test/test_pack.py +++ b/test/test_pack.py @@ -110,10 +110,9 @@ def test_odict(): seq = [(b'one', 1), (b'two', 2), (b'three', 3), (b'four', 4)] od = odict(seq) assert_equal(unpackb(packb(od), use_list=1), dict(seq)) - # After object_pairs_hook is implemented. - #def pair_hook(seq): - # return seq - #assert_equal(unpackb(packb(od), object_pairs_hook=pair_hook), seq) + def pair_hook(seq): + return seq + assert_equal(unpackb(packb(od), object_pairs_hook=pair_hook, use_list=1), seq) if __name__ == '__main__': |