Skip to content

[REPRO] gh-145607: Reproduce flaky test_bz2.testDecompressorChunksMaxsize#145608

Draft
colesbury wants to merge 1 commit intopython:mainfrom
colesbury:gh-145607-test-bz2-flaky-big-text
Draft

[REPRO] gh-145607: Reproduce flaky test_bz2.testDecompressorChunksMaxsize#145608
colesbury wants to merge 1 commit intopython:mainfrom
colesbury:gh-145607-test-bz2-flaky-big-text

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented Mar 6, 2026

Sort the glob results then shuffle with a fixed seed (555) so that the first bz2 block's compressed data extends into the last 64 bytes of BIG_DATA. The -64 truncation then yields an incomplete block, causing the assertFalse(bzd.needs_input) assertion to fail.

Sort the glob results then shuffle with a fixed seed (555) so that
the first bz2 block's compressed data extends into the last 64 bytes
of BIG_DATA. The -64 truncation then yields an incomplete block,
causing the assertFalse(bzd.needs_input) assertion to fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant