summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2014-06-26 21:48:43 +0900
committerINADA Naoki <inada-n@klab.com>2014-06-26 21:48:43 +0900
commitfab91a5bbd35495a48ac0efa4205829cd6e1bb9a (patch)
tree898fc7795e4861fddb2327767b56ce9041501b03
parentc3cc8a96460c94cdde8eee6e83df6cb661d42018 (diff)
downloadmsgpack-python-max-xxx-size.tar.gz
Fix test failuer on Python 3.max-xxx-size
-rw-r--r--test/test_limits.py4
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()