summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2018-11-29 22:38:22 +0900
committerInada Naoki <songofacandy@gmail.com>2018-11-29 22:38:22 +0900
commite76091a82c04d092a363b0e1f7307dc70bf784f5 (patch)
tree15c64dbe836637af0b5778cd432c2ec48dca0209 /test
parentdc1b9930793ea57aa4e2a9773a23582b5483c53a (diff)
downloadmsgpack-python-e76091a82c04d092a363b0e1f7307dc70bf784f5.tar.gz
Fix test
Diffstat (limited to 'test')
-rw-r--r--test/test_except.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_except.py b/test/test_except.py
index 40ca3ee..01961d2 100644
--- a/test/test_except.py
+++ b/test/test_except.py
@@ -55,9 +55,9 @@ def test_invalidvalue():
def test_strict_map_key():
valid = {u"unicode": 1, b"bytes": 2}
packed = packb(valid, use_bin_type=True)
- assert valid == unpackb(packed, raw=True)
+ assert valid == unpackb(packed, raw=True, strict_map_key=True)
invalid = {42: 1}
packed = packb(invalid, use_bin_type=True)
with raises(ValueError):
- unpackb(packed, raw=True)
+ unpackb(packed, raw=True, strict_map_key=True)