8000 [3.14] gh-135166: Fix exception type expected by test.test_zstd (GH-1… · python/cpython@945af60 · GitHub
[go: up one dir, main page]

Skip to content

Commit 945af60

Browse files
[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 1b55e12) Co-authored-by: Weipeng Hong <hongweichen8888@sina.com>
1 parent 5b39741 commit 945af60

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)
0