diff options
author | INADA Naoki <inada-n@klab.com> | 2014-06-26 21:48:43 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2014-06-26 21:48:43 +0900 |
commit | fab91a5bbd35495a48ac0efa4205829cd6e1bb9a (patch) | |
tree | 898fc7795e4861fddb2327767b56ce9041501b03 /test/test_limits.py | |
parent | c3cc8a96460c94cdde8eee6e83df6cb661d42018 (diff) | |
download | msgpack-python-max-xxx-size.tar.gz |
Fix test failuer on Python 3.max-xxx-size
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 4a85f8b..3c1cf2a 100644 --- a/test/test_limits.py +++ b/test/test_limits.py @@ -36,11 +36,11 @@ def test_max_str_len(): d = 'x' * 3 packed = packb(d) - unpacker = Unpacker(max_str_len=3) + unpacker = Unpacker(max_str_len=3, encoding='utf-8') unpacker.feed(packed) assert unpacker.unpack() == d - unpacker = Unpacker(max_str_len=2) + unpacker = Unpacker(max_str_len=2, encoding='utf-8') with pytest.raises(ValueError): unpacker.feed(packed) unpacker.unpack() |