summaryrefslogtreecommitdiff
path: root/Lib/test/test_zlib.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-05-07 18:09:36 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-05-07 18:09:36 +0000
commitadfe27a717db98370ef7f2fbf73d183e56164a90 (patch)
tree30d818724d6ee16b25ff5ebcebeb664c323ae8b5 /Lib/test/test_zlib.py
parent4b3fe14d4bf56be8fb3e922052f0da65b6948a31 (diff)
downloadcpython-git-adfe27a717db98370ef7f2fbf73d183e56164a90.tar.gz
Fix failure introduced in r80929.
Diffstat (limited to 'Lib/test/test_zlib.py')
-rw-r--r--Lib/test/test_zlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index 1b13274142..3a5bd3021d 100644
--- a/Lib/test/test_zlib.py
+++ b/Lib/test/test_zlib.py
@@ -101,7 +101,7 @@ class BaseCompressTestCase(object):
# Generate 10MB worth of random, and expand it by repeating it.
# The assumption is that zlib's memory is not big enough to exploit
# such spread out redundancy.
- data = b''.join([random.getrandbits(8 * _1M).to_bytes(_1M, 'little')
+ data = b''.join([binascii.a2b_hex(fmt % random.getrandbits(8 * _1M))
for i in range(10)])
data = data * (size // len(data) + 1)
try: