Skip to content

Commit b45bb8d

Browse files
hongweipengmiss-islington
authored andcommitted
pythongh-135166: Fix exception type expected by test.test_zstd (pythonGH-135167)
(cherry picked from commit 1b55e12) Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
1 parent 5b39741 commit b45bb8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_zstd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ def test_compress_parameters(self):
294294

295295
# zstd lib doesn't support MT compression
296296
if not SUPPORT_MULTITHREADING:
297-
with self.assertRaises(ZstdError):
297+
with self.assertRaises(ValueError):
298298
ZstdCompressor(options={CompressionParameter.nb_workers:4})
299-
with self.assertRaises(ZstdError):
299+
with self.assertRaises(ValueError):
300300
ZstdCompressor(options={CompressionParameter.job_size:4})
301-
with self.assertRaises(ZstdError):
301+
with self.assertRaises(ValueError):
302302
ZstdCompressor(options={CompressionParameter.overlap_log:4})
303303

304304
# out of bounds error msg

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy