mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.14] gh-132983: Clean-ups for `_zstd
` (GH-133670) (#133756)
gh-132983: Clean-ups for ``_zstd`` (GH-133670)
(cherry picked from commit c2a5d4b383
)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
bd6aad0ec4
commit
2df021d9dc
5 changed files with 106 additions and 175 deletions
|
@ -281,7 +281,7 @@ class CompressorTestCase(unittest.TestCase):
|
|||
with self.assertRaisesRegex(ZstdError,
|
||||
(r'Error when setting zstd compression parameter "window_log", '
|
||||
r'it should \d+ <= value <= \d+, provided value is 100\. '
|
||||
r'\(zstd v\d\.\d\.\d, (?:32|64)-bit build\)')):
|
||||
r'\((?:32|64)-bit build\)')):
|
||||
compress(b'', options=option)
|
||||
|
||||
def test_unknown_compression_parameter(self):
|
||||
|
@ -413,7 +413,7 @@ class DecompressorTestCase(unittest.TestCase):
|
|||
with self.assertRaisesRegex(ZstdError,
|
||||
(r'Error when setting zstd decompression parameter "window_log_max", '
|
||||
r'it should \d+ <= value <= \d+, provided value is 100\. '
|
||||
r'\(zstd v\d\.\d\.\d, (?:32|64)-bit build\)')):
|
||||
r'\((?:32|64)-bit build\)')):
|
||||
decompress(b'', options=options)
|
||||
|
||||
def test_unknown_decompression_parameter(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue