summaryrefslogtreecommitdiff
path: root/test/test_unpack_raw.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2014-02-15 22:16:01 +0900
committerINADA Naoki <inada-n@klab.com>2014-02-15 22:16:01 +0900
commitdee2d87d413eaf9cb38f11c72df10e82a73f452f (patch)
tree54a89adff4e441ff3e7800f057566bd293ad3586 /test/test_unpack_raw.py
parent96d7d0edc6f70ab044b5ba6674f5ea992ef50c4d (diff)
downloadmsgpack-python-dee2d87d413eaf9cb38f11c72df10e82a73f452f.tar.gz
six.BytesIO => io.BytesIO
Diffstat (limited to 'test/test_unpack_raw.py')
-rw-r--r--test/test_unpack_raw.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_unpack_raw.py b/test/test_unpack_raw.py
index 9f3784c..7002601 100644
--- a/test/test_unpack_raw.py
+++ b/test/test_unpack_raw.py
@@ -1,19 +1,19 @@
"""Tests for cases where the user seeks to obtain packed msgpack objects"""
-import six
+import io
from msgpack import Unpacker, packb
def test_write_bytes():
unpacker = Unpacker()
unpacker.feed(b'abc')
- f = six.BytesIO()
+ f = io.BytesIO()
assert unpacker.unpack(f.write) == ord('a')
assert f.getvalue() == b'a'
- f = six.BytesIO()
+ f = io.BytesIO()
assert unpacker.skip(f.write) is None
assert f.getvalue() == b'b'
- f = six.BytesIO()
+ f = io.BytesIO()
assert unpacker.skip() is None
assert f.getvalue() == b''
@@ -21,9 +21,9 @@ def test_write_bytes():
def test_write_bytes_multi_buffer():
long_val = (5) * 100
expected = packb(long_val)
- unpacker = Unpacker(six.BytesIO(expected), read_size=3, max_buffer_size=3)
+ unpacker = Unpacker(io.BytesIO(expected), read_size=3, max_buffer_size=3)
- f = six.BytesIO()
+ f = io.BytesIO()
unpacked = unpacker.unpack(f.write)
assert unpacked == long_val
assert f.getvalue() == expected