summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-10-04 10:51:45 (GMT)
committerGitHub <noreply@github.com>2023-10-04 10:51:45 (GMT)
commite9f2352b7b7503519790ee6f51c2e298cf390e75 (patch)
treeeed399a51f79e86fa1f0062c42a00db49f6ecbbf
parentefd8c7a7c97aa411098a4bee0ef1d428337deebb (diff)
downloadcpython-e9f2352b7b7503519790ee6f51c2e298cf390e75.zip
cpython-e9f2352b7b7503519790ee6f51c2e298cf390e75.tar.gz
cpython-e9f2352b7b7503519790ee6f51c2e298cf390e75.tar.bz2
gh-110332: Remove mentions of `random.WichmannHill` from `test_zlib` (#110334)
-rw-r--r--Lib/test/test_zlib.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index 9a099ad..1dc8b91 100644
--- a/Lib/test/test_zlib.py
+++ b/Lib/test/test_zlib.py
@@ -512,18 +512,7 @@ class CompressObjectTestCase(BaseCompressTestCase, unittest.TestCase):
# Try 17K of data
# generate random data stream
- try:
- # In 2.3 and later, WichmannHill is the RNG of the bug report
- gen = random.WichmannHill()
- except AttributeError:
- try:
- # 2.2 called it Random
- gen = random.Random()
- except AttributeError:
- # others might simply have a single RNG
- gen = random
- gen.seed(1)
- data = gen.randbytes(17 * 1024)
+ data = random.randbytes(17 * 1024)
# compress, sync-flush, and decompress
first = co.compress(data)