From adfe27a717db98370ef7f2fbf73d183e56164a90 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 7 May 2010 18:09:36 +0000 Subject: Fix failure introduced in r80929. --- Lib/test/test_zlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 1b13274..3a5bd30 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: -- cgit v0.12