diff options
author | INADA Naoki <inada-n@klab.com> | 2013-10-20 22:59:27 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2013-10-20 22:59:27 +0900 |
commit | 822cce823cfea8e9f7625598a125897718b4ab58 (patch) | |
tree | df96f660ed03e8d202fe31477ee9afe1fee86898 /test | |
parent | 96bcd76f49afd00f5b7def1ff7cfd002a7fa477d (diff) | |
download | msgpack-python-822cce823cfea8e9f7625598a125897718b4ab58.tar.gz |
Support unpacking new types.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_obj.py b/test/test_obj.py index fbf610c..9083218 100644 --- a/test/test_obj.py +++ b/test/test_obj.py @@ -35,7 +35,7 @@ def test_only_one_obj_hook(): unpackb(b'', object_hook=lambda x: x, object_pairs_hook=lambda x: x) def test_bad_hook(): - with raises(ValueError): + with raises(TypeError): packed = packb([3, 1+2j], default=lambda o: o) unpacked = unpackb(packed, use_list=1) |