Skip to content

Commit 3871f9c

Browse files
committed
gh-110332: Remove mentions of random.WichmannHill from test_zlib
1 parent 1465386 commit 3871f9c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Lib/test/test_zlib.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -512,16 +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
515+
gen = random.Random()
525516
gen.seed(1)
526517
data = gen.randbytes(17 * 1024)
527518

0 commit comments

Comments
 (0)