diff options
author | INADA Naoki <songofacandy@gmail.com> | 2014-02-13 01:19:33 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2014-02-13 01:19:33 +0900 |
commit | f322ed4e1bc3b9243b187df31af1f2d72876b9b6 (patch) | |
tree | ce030b07f18c8c09a5aaa354be7a172ac183f3a3 /test/test_obj.py | |
parent | 7973cce554b94f4418c258fb723820ae5fffdd26 (diff) | |
parent | 77046b839da20feb528d303c8858ab6f34013ce7 (diff) | |
download | msgpack-python-f322ed4e1bc3b9243b187df31af1f2d72876b9b6.tar.gz |
Merge pull request #84 from wbolster/exception-type-cleanups
Always raise TypeError for wrong argument types
Diffstat (limited to 'test/test_obj.py')
-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 9083218..390c1b6 100644 --- a/test/test_obj.py +++ b/test/test_obj.py @@ -31,7 +31,7 @@ def test_decode_pairs_hook(): assert unpacked[1] == prod_sum def test_only_one_obj_hook(): - with raises(ValueError): + with raises(TypeError): unpackb(b'', object_hook=lambda x: x, object_pairs_hook=lambda x: x) def test_bad_hook(): |