mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Fix Python 3.2
This commit is contained in:
parent
7d0e145e91
commit
5fb9d8a7fd
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
# coding: utf-8
|
||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||
import pytest
|
||||
|
||||
from msgpack import packb, unpackb, Packer
|
||||
|
@ -43,9 +44,9 @@ def test_binary():
|
|||
|
||||
@pytest.mark.skipif(True, reason="Requires very large memory.")
|
||||
def test_string():
|
||||
x = u'x' * (2**32 - 1)
|
||||
x = 'x' * (2**32 - 1)
|
||||
assert unpackb(packb(x)) == x
|
||||
x += u'y'
|
||||
x += 'y'
|
||||
with pytest.raises(ValueError):
|
||||
packb(x)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue