Title: `test_zlib` uses some very old `random` API · Issue #110332 · python/cpython · GitHub
Open Graph Title: `test_zlib` uses some very old `random` API · Issue #110332 · python/cpython
X Title: `test_zlib` uses some very old `random` API · Issue #110332 · python/cpython
Description: Bug report Here's the problematic code: cpython/Lib/test/test_zlib.py Lines 513 to 525 in 1465386 # Try 17K of data # generate random data stream try: # In 2.3 and later, WichmannHill is the RNG of the bug report gen = random.WichmannHil...
Open Graph Description: Bug report Here's the problematic code: cpython/Lib/test/test_zlib.py Lines 513 to 525 in 1465386 # Try 17K of data # generate random data stream try: # In 2.3 and later, WichmannHill is the RNG of...
X Description: Bug report Here's the problematic code: cpython/Lib/test/test_zlib.py Lines 513 to 525 in 1465386 # Try 17K of data # generate random data stream try: # In 2.3 and later, WichmannHill is the RN...
Opengraph URL: https://github.com/python/cpython/issues/110332
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_zlib` uses some very old `random` API","articleBody":"# Bug report\n\nHere's the problematic code: https://github.com/python/cpython/blob/1465386720cd532a378a5cc1e6de9d96dd8fcc81/Lib/test/test_zlib.py#L513-L525\n\nIt always fails with `AttributeError`, because `random.WichmannHill()` does not exist.\n\nThis is some old compatibility class that was removed a long time ago:\n\n```\nThe attributes random.whseed and random.__whseed have no meaning for\n the new generator. Code using these attributes should switch to a\n new class, random.WichmannHill which is provided for backward\n compatibility and to make an alternate generator available.\n```\n\nSo, I propose to simplify this test.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-110334\n* gh-110348\n* gh-110349\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2023-10-04T08:29:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/110332/cpython/issues/110332"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1cc0c9c0-8731-132a-a9a4-30d719a345cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC0A:2BEEEA:100CABC:15B91D4:6A556D0D |
| html-safe-nonce | 2676dd7307013813b1ba898c390d67cd3bf60857bd2cf49cb5ad8251708c1ccb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzBBOjJCRUVFQToxMDBDQUJDOjE1QjkxRDQ6NkE1NTZEMEQiLCJ2aXNpdG9yX2lkIjoiODY2OTA3MDgzMTMxNzMyNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8e066da38c9d60ee5cf6486fd51b61ac57833ef4b0e661c35eb5b37805f76ef2 |
| hovercard-subject-tag | issue:1925678240 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/110332/issue_layout |
| twitter:image | https://opengraph.githubassets.com/00f216b718b60511fbf5e96a894c947247e63cd8436bb6ee1c164abed51fb18e/python/cpython/issues/110332 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/00f216b718b60511fbf5e96a894c947247e63cd8436bb6ee1c164abed51fb18e/python/cpython/issues/110332 |
| og:image:alt | Bug report Here's the problematic code: cpython/Lib/test/test_zlib.py Lines 513 to 525 in 1465386 # Try 17K of data # generate random data stream try: # In 2.3 and later, WichmannHill is the RNG of... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a90bd2a4a25feb75544d06b89350dcf95d9c46e0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width