Title: test.test_zstd failed due to error type · Issue #135166 · python/cpython · GitHub
Open Graph Title: test.test_zstd failed due to error type · Issue #135166 · python/cpython
X Title: test.test_zstd failed due to error type · Issue #135166 · python/cpython
Description: Bug report Bug description: weapon@dev:/tmp/tmp.SyXPqDr6vd$ ./python -m test test.test_zstd Using random seed: 4050720728 0:00:00 load avg: 0.92 Run 1 test sequentially in a single process 0:00:00 load avg: 0.92 [1/1] test.test_zstd test...
Open Graph Description: Bug report Bug description: weapon@dev:/tmp/tmp.SyXPqDr6vd$ ./python -m test test.test_zstd Using random seed: 4050720728 0:00:00 load avg: 0.92 Run 1 test sequentially in a single process 0:00:00 ...
X Description: Bug report Bug description: weapon@dev:/tmp/tmp.SyXPqDr6vd$ ./python -m test test.test_zstd Using random seed: 4050720728 0:00:00 load avg: 0.92 Run 1 test sequentially in a single process 0:00:00 ...
Opengraph URL: https://github.com/python/cpython/issues/135166
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test.test_zstd failed due to error type","articleBody":"# Bug report\n\n### Bug description:\n\n```python\nweapon@dev:/tmp/tmp.SyXPqDr6vd$ ./python -m test test.test_zstd\nUsing random seed: 4050720728\n0:00:00 load avg: 0.92 Run 1 test sequentially in a single process\n0:00:00 load avg: 0.92 [1/1] test.test_zstd\ntest test.test_zstd failed -- Traceback (most recent call last):\n File \"/tmp/tmp.SyXPqDr6vd/Lib/test/test_zstd.py\", line 297, in test_compress_parameters\n ZstdCompressor(options={CompressionParameter.nb_workers:4})\n ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nValueError: compression parameter 'nb_workers' received an illegal value 4; the valid range is [0, 0]\n\n0:00:00 load avg: 0.92 [1/1/1] test.test_zstd failed (1 error)\n\n== Tests result: FAILURE ==\n\n1 test failed:\n test.test_zstd\n\nTotal duration: 456 ms\nTotal tests: run=118 skipped=1\nTotal test files: run=1/1 failed=1\nResult: FAILURE\n```\n`Modules/_zstd/_zstdmodule.c` function `set_parameter_error` :\n```\n /* Error message */\n PyErr_Format(PyExc_ValueError,\n \"%s parameter '%s' received an illegal value %d; \"\n \"the valid range is [%d, %d]\",\n type, name, value_v, bounds.lowerBound, bounds.upperBound);\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-135167\n* gh-135189\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/hongweipeng","@type":"Person","name":"hongweipeng"},"datePublished":"2025-06-05T09:11:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/135166/cpython/issues/135166"}
| 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:eb203053-98db-ad2e-9248-1ec84a40e07a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D486:320F8E:1A1EF44:23B36BE:696AB39B |
| html-safe-nonce | 79e26409f910a1a6a52fcac853655e3945fb1831f3a9f339391905d30529b8fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDg2OjMyMEY4RToxQTFFRjQ0OjIzQjM2QkU6Njk2QUIzOUIiLCJ2aXNpdG9yX2lkIjoiNTk2OTQ0MTk2MjYyMjM2NjYxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a843a88e1e65a7ab4157f84911498efc512889a3e76326b2bc9883a0dd4f8e80 |
| hovercard-subject-tag | issue:3120441621 |
| 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/135166/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dc7feef8fdbe7b422f7a86e8c19e63753e9c31534fd17ff0b70dc31bcdba8050/python/cpython/issues/135166 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc7feef8fdbe7b422f7a86e8c19e63753e9c31534fd17ff0b70dc31bcdba8050/python/cpython/issues/135166 |
| og:image:alt | Bug report Bug description: weapon@dev:/tmp/tmp.SyXPqDr6vd$ ./python -m test test.test_zstd Using random seed: 4050720728 0:00:00 load avg: 0.92 Run 1 test sequentially in a single process 0:00:00 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hongweipeng |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| 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 | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width