weapon@dev:/tmp/tmp.SyXPqDr6vd$ ./python-mtesttest.test_zstdUsingrandomseed: 40507207280:00:00loadavg: 0.92Run1testsequentiallyinasingleprocess0:00:00loadavg: 0.92 [1/1] test.test_zstdtesttest.test_zstdfailed--Traceback (mostrecentcalllast):
File"/tmp/tmp.SyXPqDr6vd/Lib/test/test_zstd.py", line297, intest_compress_parametersZstdCompressor(options={CompressionParameter.nb_workers:4})
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ValueError: compressionparameter'nb_workers'receivedanillegalvalue4; thevalidrangeis [0, 0]
0:00:00loadavg: 0.92 [1/1/1] test.test_zstdfailed (1error)
==Testsresult: FAILURE==1testfailed:
test.test_zstdTotalduration: 456msTotaltests: run=118skipped=1Totaltestfiles: run=1/1failed=1Result: FAILURE /* 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);
Bug report
Bug description:
Modules/_zstd/_zstdmodule.cfunctionset_parameter_error:CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs