https://github.com/python/cpython/commit/945af60f047088ab35b48e411d545cbf9111e576
commit: 945af60f047088ab35b48e411d545cbf9111e576
branch: 3.14
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: zooba <steve.do...@microsoft.com>
date: 2025-06-05T18:41:51+01:00
summary:

[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 1b55e12766d007aea9fcd0966e29ce220b67d28e)

Co-authored-by: Weipeng Hong <hongweichen8...@sina.com>

files:
M Lib/test/test_zstd.py

diff --git a/Lib/test/test_zstd.py b/Lib/test/test_zstd.py
index 57de5eb6a5c735..7bd0ffd9391529 100644
--- a/Lib/test/test_zstd.py
+++ b/Lib/test/test_zstd.py
@@ -294,11 +294,11 @@ def test_compress_parameters(self):
 
         # 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

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to