summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()