Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
(cherry picked from commit 1b55e12)

Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
  • Loading branch information
hongweipeng authored and miss-islington committed Jun 5, 2025
commit b45bb8d299fdb59d43fbb3f28e6c9271c1a983af
6 changes: 3 additions & 3 deletions Lib/test/test_zstd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down