From 945af60f047088ab35b48e411d545cbf9111e576 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:41:51 +0200 Subject: [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 --- Lib/test/test_zstd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_zstd.py b/Lib/test/test_zstd.py index 57de5eb..7bd0ffd 100644 --- a/Lib/test/test_zstd.py +++ b/Lib/test/test_zstd.py @@ -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 -- cgit v0.12