Repository navigation
Commit d81eed6
pythongh-155460: Make the multi-frame zstd test depend on whole-frame feeding
test_output_allocated_once_each_frame passed even without the
whole-frame feeding in zstd.decompress(): its 2 MiB frame compresses to
459 bytes, so it fits whole into the 1 KiB that _decompress_all() feeds
a later frame first. Use 2 MiB of zeros followed by 4 KiB of random
bytes instead: the frame compresses to more than 1 KiB, and most of its
output is decoded from its first KiB, which grows the output buffer
unless the frame is fed whole.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 431f0f1 commit d81eed6
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
1166 | | - | |
1167 | | - | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
1168 | 1170 | | |
1169 | 1171 | | |
1170 | 1172 | | |
| |||
0 commit comments