mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.14] gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
(cherry picked from commit 1b55e12766
)
Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
This commit is contained in:
parent
5b39741a09
commit
945af60f04
1 changed files with 3 additions and 3 deletions
|
@ -294,11 +294,11 @@ class CompressorTestCase(unittest.TestCase):
|
|||
|
||||
# zstd lib doesn't support MT compression
|
||||
if not SUPPORT_MULTITHREADING:
|
||||
with self.assertRaises(ZstdError):
|
||||
with self.assertRaises(ValueError):
|
||||
ZstdCompressor(options={CompressionParameter.nb_workers:4})
|
||||
with self.assertRaises(ZstdError):
|
||||
with self.assertRaises(ValueError):
|
||||
ZstdCompressor(options={CompressionParameter.job_size:4})
|
||||
with self.assertRaises(ZstdError):
|
||||
with self.assertRaises(ValueError):
|
||||
ZstdCompressor(options={CompressionParameter.overlap_log:4})
|
||||
|
||||
# out of bounds error msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue