summaryrefslogtreecommitdiff
path: root/test/test_pack.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_pack.py
parent96d7d0edc6f70ab044b5ba6674f5ea992ef50c4d (diff)
downloadmsgpack-python-dee2d87d413eaf9cb38f11c72df10e82a73f452f.tar.gz
six.BytesIO => io.BytesIO
Diffstat (limited to 'test/test_pack.py')
-rw-r--r--test/test_pack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_pack.py b/test/test_pack.py
index 0d3ed6d..2da7089 100644
--- a/test/test_pack.py
+++ b/test/test_pack.py
@@ -89,7 +89,7 @@ def testPackFloat():
assert packb(1.0, use_single_float=False) == b'\xcb' + struct.pack('>d', 1.0)
def testArraySize(sizes=[0, 5, 50, 1000]):
- bio = six.BytesIO()
+ bio = BytesIO()
packer = Packer()
for size in sizes:
bio.write(packer.pack_array_header(size))
@@ -108,7 +108,7 @@ def test_manualreset(sizes=[0, 5, 50, 1000]):
for i in range(size):
packer.pack(i)
- bio = six.BytesIO(packer.bytes())
+ bio = BytesIO(packer.bytes())
unpacker = Unpacker(bio, use_list=1)
for size in sizes:
assert unpacker.unpack() == list(range(size))
@@ -117,7 +117,7 @@ def test_manualreset(sizes=[0, 5, 50, 1000]):
assert packer.bytes() == b''
def testMapSize(sizes=[0, 5, 50, 1000]):
- bio = six.BytesIO()
+ bio = BytesIO()
packer = Packer()
for size in sizes:
bio.write(packer.pack_map_header(size))