Skip to content

gh-148605: Remove irepeat() thread test from test_bytes#150576

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:test_bytes_irepeat
Open

gh-148605: Remove irepeat() thread test from test_bytes#150576
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:test_bytes_irepeat

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented May 29, 2026

The bytearray size has no bounds and can grow up to 4 GiB which is way too much memory. Since irepeat() calls were done in parallel, it was not possible to limit the bytearray size.

The bytearray size has no bounds and can grow up to 4 GiB which is
way too much memory. Since irepeat() calls were done in parallel, it
was not possible to limit the bytearray size.
@vstinner vstinner added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels May 29, 2026
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label May 29, 2026
@vstinner
Copy link
Copy Markdown
Member Author

@colesbury @kumaraditya303: Would you mind to review this fix?

@vstinner
Copy link
Copy Markdown
Member Author

Tests / Windows / Build and test (Win32, switch-case) (pull_request): Failing

FAIL: test_generator_not_under_consumer_arithmetic (test.test_profiling.test_sampling_profiler.test_blocking.TestBlockingModeStackAccuracy.test_generator_not_under_consumer_arithmetic)

That's the issue gh-150429. It's unrelated to my change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants