From: Weipeng Hong Date: Thu, 5 Jun 2025 16:00:07 +0000 (+0800) Subject: gh-135166: Fix exception type expected by test.test_zstd (GH-135167) X-Git-Tag: v3.15.0a1~1380 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b55e12766d007aea9fcd0966e29ce220b67d28e;p=thirdparty%2FPython%2Fcpython.git gh-135166: Fix exception type expected by test.test_zstd (GH-135167) --- diff --git a/Lib/test/test_zstd.py b/Lib/test/test_zstd.py index 14a09a886046..d4c28aed38ef 100644 --- a/Lib/test/test_zstd.py +++ b/Lib/test/test_zstd.py @@ -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