summaryrefslogtreecommitdiff
path: root/test/test_seq.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_seq.py')
-rw-r--r--test/test_seq.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/test_seq.py b/test/test_seq.py
index fed9ff4..0d5d806 100644
--- a/test/test_seq.py
+++ b/test/test_seq.py
@@ -7,8 +7,9 @@ import msgpack
binarydata = bytes(bytearray(range(256)))
+
def gen_binary_data(idx):
- return binarydata[:idx % 300]
+ return binarydata[: idx % 300]
def test_exceeding_unpacker_read_size():
@@ -18,10 +19,10 @@ def test_exceeding_unpacker_read_size():
NUMBER_OF_STRINGS = 6
read_size = 16
- # 5 ok for read_size=16, while 6 glibc detected *** python: double free or corruption (fasttop):
- # 20 ok for read_size=256, while 25 segfaults / glibc detected *** python: double free or corruption (!prev)
- # 40 ok for read_size=1024, while 50 introduces errors
- # 7000 ok for read_size=1024*1024, while 8000 leads to glibc detected *** python: double free or corruption (!prev):
+ # 5 ok for read_size=16, while 6 glibc detected *** python: double free or corruption (fasttop):
+ # 20 ok for read_size=256, while 25 segfaults / glibc detected *** python: double free or corruption (!prev)
+ # 40 ok for read_size=1024, while 50 introduces errors
+ # 7000 ok for read_size=1024*1024, while 8000 leads to glibc detected *** python: double free or corruption (!prev):
for idx in range(NUMBER_OF_STRINGS):
data = gen_binary_data(idx)