8000 Fix Python 3.2 · faerot/msgpack-python@5fb9d8a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5fb9d8a

Browse files
committed
Fix Python 3.2
1 parent 7d0e145 commit 5fb9d8a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_limits.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
# coding: utf-8
3+
from __future__ import absolute_import, division, print_function, unicode_literals
34
import pytest
45

56
from msgpack import packb, unpackb, Packer
@@ -43,9 +44,9 @@ def test_binary():
4344

4445
@pytest.mark.skipif(True, reason="Requires very large memory.")
4546
def test_string():
46-
x = u'x' * (2**32 - 1)
47+
x = 'x' * (2**32 - 1)
4748
assert unpackb(packb(x)) == x
48-
x += u'y'
49+
x += 'y'
4950
with pytest.raises(ValueError):
5051
packb(x)
5152

0 commit comments

Comments
 (0)
0