Skip to content

Commit e9f2352

Browse files
authored
gh-110332: Remove mentions of random.WichmannHill from test_zlib (#110334)
1 parent efd8c7a commit e9f2352

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Lib/test/test_zlib.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -512,18 +512,7 @@ def test_odd_flush(self):
512512

513513
# Try 17K of data
514514
# generate random data stream
515-
try:
516-
# In 2.3 and later, WichmannHill is the RNG of the bug report
517-
gen = random.WichmannHill()
518-
except AttributeError:
519-
try:
520-
# 2.2 called it Random
521-
gen = random.Random()
522-
except AttributeError:
523-
# others might simply have a single RNG
524-
gen = random
525-
gen.seed(1)
526-
data = gen.randbytes(17 * 1024)
515+
data = random.randbytes(17 * 1024)
527516

528517
# compress, sync-flush, and decompress
529518
first = co.compress(data)

0 commit comments

Comments
 (0)