mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
Whitespace normalization.
This commit is contained in:
parent
edf2210221
commit
0009c4ea59
4 changed files with 4 additions and 5 deletions
|
|
@ -92,7 +92,7 @@ for sync in [zlib.Z_NO_FLUSH, zlib.Z_SYNC_FLUSH, zlib.Z_FULL_FLUSH]:
|
|||
# Test for the odd flushing bugs noted in 2.0, and hopefully fixed in 2.1
|
||||
|
||||
import random
|
||||
random.seed(1)
|
||||
random.seed(1)
|
||||
|
||||
print 'Testing on 17K of random data'
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ d=zlib.decompressobj()
|
|||
a=""
|
||||
for i in range(17*1024):
|
||||
a=a+chr(random.randint(0,255))
|
||||
|
||||
|
||||
# compress, sync-flush, and decompress
|
||||
t = d.decompress( c.compress(a)+c.flush(zlib.Z_SYNC_FLUSH) )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue