From fab91a5bbd35495a48ac0efa4205829cd6e1bb9a Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Thu, 26 Jun 2014 21:48:43 +0900 Subject: Fix test failuer on Python 3. --- test/test_limits.py | 4 ++-- 1 file 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() -- cgit v1.2.1