gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
This commit is contained in:
parent
8919cb4ad9
commit
1b55e12766
@ -293,11 +293,11 @@ class CompressorTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
# zstd lib doesn't support MT compression
|
# zstd lib doesn't support MT compression
|
||||||
if not SUPPORT_MULTITHREADING:
|
if not SUPPORT_MULTITHREADING:
|
||||||
with self.assertRaises(ZstdError):
|
with self.assertRaises(ValueError):
|
||||||
ZstdCompressor(options={CompressionParameter.nb_workers:4})
|
ZstdCompressor(options={CompressionParameter.nb_workers:4})
|
||||||
with self.assertRaises(ZstdError):
|
with self.assertRaises(ValueError):
|
||||||
ZstdCompressor(options={CompressionParameter.job_size:4})
|
ZstdCompressor(options={CompressionParameter.job_size:4})
|
||||||
with self.assertRaises(ZstdError):
|
with self.assertRaises(ValueError):
|
||||||
ZstdCompressor(options={CompressionParameter.overlap_log:4})
|
ZstdCompressor(options={CompressionParameter.overlap_log:4})
|
||||||
|
|
||||||
# out of bounds error msg
|
# out of bounds error msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user