Mercurial > public > mercurial-scm > hg
comparison contrib/python-zstandard/tests/test_decompressor_fuzzing.py @ 51699:ca7bde5dbafb
black: format the codebase with 23.3.0
The CI has moved to 23.3.0, which is the last version that supports 3.7
at runtime, so we should honor this change.
# skip-blame mass-reformating only
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 18 Jul 2024 12:36:12 +0200 |
parents | 7f0cb9ee0534 |
children |
comparison
equal
deleted
inserted
replaced
51698:b0a4de6c14f8 | 51699:ca7bde5dbafb |
---|---|
351 read_sizes=strategies.data(), | 351 read_sizes=strategies.data(), |
352 ) | 352 ) |
353 def test_multiple_frames( | 353 def test_multiple_frames( |
354 self, originals, frame_count, level, source_read_size, read_sizes | 354 self, originals, frame_count, level, source_read_size, read_sizes |
355 ): | 355 ): |
356 | |
357 cctx = zstd.ZstdCompressor(level=level) | 356 cctx = zstd.ZstdCompressor(level=level) |
358 source = io.BytesIO() | 357 source = io.BytesIO() |
359 buffer = io.BytesIO() | 358 buffer = io.BytesIO() |
360 writer = cctx.stream_writer(buffer) | 359 writer = cctx.stream_writer(buffer) |
361 | 360 |