]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
authorWeipeng Hong <hongweichen8888@sina.com>
Thu, 5 Jun 2025 16:00:07 +0000 (00:00 +0800)
committerGitHub <noreply@github.com>
Thu, 5 Jun 2025 16:00:07 +0000 (17:00 +0100)
Lib/test/test_zstd.py

index 14a09a886046f7d72b11650af955208dc5321dd8..d4c28aed38ef908891f10368f7bd547fe1c8fb8a 100644 (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