mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
This commit is contained in:
parent
8919cb4ad9
commit
1b55e12766
1 changed files with 3 additions and 3 deletions
|
@ -293,11 +293,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