https://github.com/python/cpython/commit/1b55e12766d007aea9fcd0966e29ce220b67d28e
commit: 1b55e12766d007aea9fcd0966e29ce220b67d28e
branch: main
author: Weipeng Hong <[email protected]>
committer: zooba <[email protected]>
date: 2025-06-05T17:00:07+01:00
summary:
gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
files:
M Lib/test/test_zstd.py
diff --git a/Lib/test/test_zstd.py b/Lib/test/test_zstd.py
index 14a09a886046f7..d4c28aed38ef90 100644
--- a/Lib/test/test_zstd.py
+++ b/Lib/test/test_zstd.py
@@ -293,11 +293,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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]