Skip to content

Commit 1b55e12

Browse files
authored
gh-135166: Fix exception type expected by test.test_zstd (GH-135167)
1 parent 8919cb4 commit 1b55e12

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
@@ -293,11 +293,11 @@ def test_compress_parameters(self):
293293

294294
# zstd lib doesn't support MT compression
295295
if not SUPPORT_MULTITHREADING:
296-
with self.assertRaises(ZstdError):
296+
with self.assertRaises(ValueError):
297297
ZstdCompressor(options={CompressionParameter.nb_workers:4})
298-
with self.assertRaises(ZstdError):
298+
with self.assertRaises(ValueError):
299299
ZstdCompressor(options={CompressionParameter.job_size:4})
300-
with self.assertRaises(ZstdError):
300+
with self.assertRaises(ValueError):
301301
ZstdCompressor(options={CompressionParameter.overlap_log:4})
302302

303303
# out of bounds error msg

0 commit comments

Comments
 (0)