diff options
author | INADA Naoki <inada-n@klab.com> | 2014-03-26 13:32:28 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2014-03-26 13:32:28 +0900 |
commit | 5fb9d8a7fd09893afdd1e5844288313bb347856b (patch) | |
tree | e7671a864dd58f1109a9cbcd65fd5a9128b1ffb0 | |
parent | 7d0e145e91700ee58c5accaeb5dff6a9ec39a18d (diff) | |
download | msgpack-python-5fb9d8a7fd09893afdd1e5844288313bb347856b.tar.gz |
Fix Python 3.2
-rw-r--r-- | test/test_limits.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_limits.py b/test/test_limits.py index 413d651..7bc8f4c 100644 --- a/test/test_limits.py +++ b/test/test_limits.py @@ -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) |