test.test_zstd failed due to error type
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 test.test_zstd failed -- Traceback (most recent call last): File "/tmp/tmp.SyXPqDr6vd/Lib/test/test_zstd.py", line 297, in test_compress_parameters ZstdCompressor(options={CompressionParameter.nb_workers:4}) ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: compression parameter 'nb_workers' received an illegal value 4; the valid range is [0, 0] 0:00:00 load avg: 0.92 [1/1/1] test.test_zstd failed (1 error) == Tests result: FAILURE == 1 test failed: test.test_zstd Total duration: 456 ms Total tests: run=118 skipped=1 Total test files: run=1/1 failed=1 Result: FAILURE
Modules/_zstd/_zstdmodule.c function set_parameter_error :
/* Error message */
PyErr_Format(PyExc_ValueError,
"%s parameter '%s' received an illegal value %d; "
"the valid range is [%d, %d]",
type, name, value_v, bounds.lowerBound, bounds.upperBound);
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux