diff options
| author | Inada Naoki <songofacandy@gmail.com> | 2019-12-06 22:23:15 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-06 22:23:15 +0900 |
| commit | d8e3cf0563989a660398318a7c788645124e1d8b (patch) | |
| tree | bd4db6fa691dd01930e751570bbddb559db1302a /test/test_limits.py | |
| parent | 0fc0eb2f16fcc7d0271792f93a90af389f66dafb (diff) | |
| download | msgpack-python-d8e3cf0563989a660398318a7c788645124e1d8b.tar.gz | |
Make strict_map_key default to True (#392)
Diffstat (limited to 'test/test_limits.py')
| -rw-r--r-- | test/test_limits.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_limits.py b/test/test_limits.py index 6e85030..65e6bcc 100644 --- a/test/test_limits.py +++ b/test/test_limits.py @@ -87,11 +87,11 @@ def test_max_map_len(): d = {1: 2, 3: 4, 5: 6} packed = packb(d) - unpacker = Unpacker(max_map_len=3) + unpacker = Unpacker(max_map_len=3, strict_map_key=False) unpacker.feed(packed) assert unpacker.unpack() == d - unpacker = Unpacker(max_map_len=2) + unpacker = Unpacker(max_map_len=2, strict_map_key=False) with pytest.raises(UnpackValueError): unpacker.feed(packed) unpacker.unpack() |
