diff options
author | INADA Naoki <songofacandy@gmail.com> | 2014-02-17 03:38:06 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2014-02-17 03:38:06 +0900 |
commit | ff263dfee81b3c20de8e75f903a9ef82ba9e7de2 (patch) | |
tree | 2c35e656b7520fed07a69325464a1b0747348a99 /test/test_seq.py | |
parent | 96d7d0edc6f70ab044b5ba6674f5ea992ef50c4d (diff) | |
parent | 0c22e775c9ea71242eec237e2e032aca749e909c (diff) | |
download | msgpack-python-ff263dfee81b3c20de8e75f903a9ef82ba9e7de2.tar.gz |
Merge pull request #91 from msgpack/reduce-six
Reduce six usage
Diffstat (limited to 'test/test_seq.py')
-rw-r--r-- | test/test_seq.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/test_seq.py b/test/test_seq.py index af719b0..fed9ff4 100644 --- a/test/test_seq.py +++ b/test/test_seq.py @@ -1,16 +1,15 @@ #!/usr/bin/env python # coding: utf-8 -import six import io import msgpack -binarydata = [chr(i) for i in range(256)] -binarydata = six.b("".join(binarydata)) + +binarydata = bytes(bytearray(range(256))) def gen_binary_data(idx): - data = binarydata[:idx % 300] - return data + return binarydata[:idx % 300] + def test_exceeding_unpacker_read_size(): dumpf = io.BytesIO() |