Skip to content

gh-160543: Isolate cleanup stacks in parallel test workers - #160560

Open
mpage wants to merge 1 commit into
python:mainfrom
mpage:gh-160543-parallel-tests
Open

mpage wants to merge 1 commit into
python:mainfrom
mpage:gh-160543-parallel-tests

Conversation

@mpage

@mpage mpage commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Shallow-copying a TestCase also shares its mutable _cleanups list, allowing worker threads to consume callbacks registered by other workers. Copy the cleanup stack separately for each worker while preserving callbacks registered before the run.

Authored with AI.

Shallow-copying a TestCase also shares its mutable _cleanups list, allowing
worker threads to consume callbacks registered by other workers. Copy the
cleanup stack separately for each worker while preserving callbacks registered
before the run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant