Skip to content

test.test_zstd failed due to error type #135166

Description

@hongweipeng

Bug report

Bug description:

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

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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions