Skip to content

Conversation

@chaope
Copy link

@chaope chaope commented Dec 13, 2025

gh-142651: Make call_count of Mock thread safe

@chaope chaope requested a review from cjw296 as a code owner December 13, 2025 06:15
@bedevere-app
Copy link

bedevere-app bot commented Dec 13, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Copy link
Member

@picnixz picnixz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

import concurrent.futures

from test.support import threading_helper
from test.support import setswitchinterval, threading_helper
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes me think that we should have this as a context manager instead but this is a separate issue. I'll do it tomorrow myself.

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.

3 participants