gh-135166: Fix exception type expected by test.test_zstd (GH-135167)

This commit is contained in:
Weipeng Hong 2025-06-06 00:00:07 +08:00 committed by GitHub
parent 8919cb4ad9
commit 1b55e12766
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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