[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:
Miss Islington (bot) 2025-06-05 19:41:51 +02:00 committed by GitHub
parent 5b39741a09
commit 945af60f04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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