René's URL Explorer Experiment


Title: gh-142651: Make call_count of Mock thread safe by chaope · Pull Request #142656 · python/cpython · GitHub

Open Graph Title: gh-142651: Make call_count of Mock thread safe by chaope · Pull Request #142656 · python/cpython

X Title: gh-142651: Make call_count of Mock thread safe by chaope · Pull Request #142656 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: gh-142651: Make call_count of Mock thread safe

X Description: gh-142651: Make call_count of Mock thread safe

Opengraph URL: https://github.com/python/cpython/pull/142656

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:4573acd1-eaba-91fe-1dfb-6bac8a3204d5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE640:15E3B:318826:424859:6A52ED4E
html-safe-nonce783a8076e4d54ea96c27e4b45b39bf2a0b79918c4df48cb5ab674112cf4d0fe4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjQwOjE1RTNCOjMxODgyNjo0MjQ4NTk6NkE1MkVENEUiLCJ2aXNpdG9yX2lkIjoiNDI3NDI0OTcwMjY5MjgxMDA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7c249c513ccd1da2c3d1b8b8362a48a1c7af0192e40c1a0cdf2f9d91b8257c76
hovercard-subject-tagpull_request:3098403318
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/142656/commits
twitter:imagehttps://opengraph.githubassets.com/fd4bbeb7b6fd88942fa6ac32bda43d5d78b70fce49d8f703f505793bdc709598/python/cpython/pull/142656
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fd4bbeb7b6fd88942fa6ac32bda43d5d78b70fce49d8f703f505793bdc709598/python/cpython/pull/142656
og:image:altgh-142651: Make call_count of Mock thread safe
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechaope
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/142656/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142656%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142656%2Fcommits
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/142656/commits
Reloadhttps://github.com/python/cpython/pull/142656/commits
Reloadhttps://github.com/python/cpython/pull/142656/commits
Please reload this pagehttps://github.com/python/cpython/pull/142656/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/142656/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
Conversationhttps://github.com/python/cpython/pull/142656
Commits18 (18)https://github.com/python/cpython/pull/142656/commits
Checkshttps://github.com/python/cpython/pull/142656/checks
Files changedhttps://github.com/python/cpython/pull/142656/files
gh-142651: Make call_count of Mock thread safehttps://github.com/python/cpython/pull/142656/commits#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
Make call_count of Mock thread safehttps://github.com/python/cpython/pull/142656/commits/a401818402740042d643e1c26c5c407fe663b60d
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
a401818https://github.com/python/cpython/pull/142656/commits/a401818402740042d643e1c26c5c407fe663b60d
https://github.com/python/cpython/tree/a401818402740042d643e1c26c5c407fe663b60d
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/142656/commits/d532d23633eeea55eb5ead7db88c51a1d1ab9fc3
https://github.com/apps/blurb-it
blurb-it[bot]https://github.com/python/cpython/commits?author=blurb-it%5Bbot%5D
d532d23https://github.com/python/cpython/pull/142656/commits/d532d23633eeea55eb5ead7db88c51a1d1ab9fc3
https://github.com/python/cpython/tree/d532d23633eeea55eb5ead7db88c51a1d1ab9fc3
update dochttps://github.com/python/cpython/pull/142656/commits/fe7be86596dcb3cbb3483ceb3175d3e791f3cff7
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
fe7be86https://github.com/python/cpython/pull/142656/commits/fe7be86596dcb3cbb3483ceb3175d3e791f3cff7
https://github.com/python/cpython/tree/fe7be86596dcb3cbb3483ceb3175d3e791f3cff7
calculate call_count after append call_args_listhttps://github.com/python/cpython/pull/142656/commits/29578a94af07fc61fa68ae9e6ba9fa0f37aa531c
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
29578a9https://github.com/python/cpython/pull/142656/commits/29578a94af07fc61fa68ae9e6ba9fa0f37aa531c
https://github.com/python/cpython/tree/29578a94af07fc61fa68ae9e6ba9fa0f37aa531c
revert change on documentation for call_count.https://github.com/python/cpython/pull/142656/commits/c2e4ca7d882efc7a49314fafd68d5029cbc6e487
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
c2e4ca7https://github.com/python/cpython/pull/142656/commits/c2e4ca7d882efc7a49314fafd68d5029cbc6e487
https://github.com/python/cpython/tree/c2e4ca7d882efc7a49314fafd68d5029cbc6e487
revert unnecessary change.https://github.com/python/cpython/pull/142656/commits/e9e6dfa99d568641ea3d0ce52163421edfdb572e
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
e9e6dfahttps://github.com/python/cpython/pull/142656/commits/e9e6dfa99d568641ea3d0ce52163421edfdb572e
https://github.com/python/cpython/tree/e9e6dfa99d568641ea3d0ce52163421edfdb572e
revert blank line deletionhttps://github.com/python/cpython/pull/142656/commits/3a4b590768d37b3fe6a75b4e581c37e6512f7208
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
3a4b590https://github.com/python/cpython/pull/142656/commits/3a4b590768d37b3fe6a75b4e581c37e6512f7208
https://github.com/python/cpython/tree/3a4b590768d37b3fe6a75b4e581c37e6512f7208
added TestThreadingMockRaceConditionhttps://github.com/python/cpython/pull/142656/commits/70e91077ac791fe1ef7785e38e0fb9c6699dcc28
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
70e9107https://github.com/python/cpython/pull/142656/commits/70e91077ac791fe1ef7785e38e0fb9c6699dcc28
https://github.com/python/cpython/tree/70e91077ac791fe1ef7785e38e0fb9c6699dcc28
Update Misc/NEWS.d/next/Library/2025-12-13-06-17-44.gh-issue-142651.ZRtBu4.rsthttps://github.com/python/cpython/pull/142656/commits/dc0d804c67e3e9095140be66ecdecedeaa1025b4
chaopehttps://github.com/python/cpython/commits?author=chaope
picnixzhttps://github.com/python/cpython/commits?author=picnixz
dc0d804https://github.com/python/cpython/pull/142656/commits/dc0d804c67e3e9095140be66ecdecedeaa1025b4
https://github.com/python/cpython/tree/dc0d804c67e3e9095140be66ecdecedeaa1025b4
Update Lib/test/test_unittest/testmock/testthreadingmock.pyhttps://github.com/python/cpython/pull/142656/commits/f05407ebd7594962f34f13c433481de882d39ce3
chaopehttps://github.com/python/cpython/commits?author=chaope
picnixzhttps://github.com/python/cpython/commits?author=picnixz
f05407ehttps://github.com/python/cpython/pull/142656/commits/f05407ebd7594962f34f13c433481de882d39ce3
https://github.com/python/cpython/tree/f05407ebd7594962f34f13c433481de882d39ce3
update testhttps://github.com/python/cpython/pull/142656/commits/3a81b0d9618d9cf894b15f32bfe6685623b7d842
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
3a81b0dhttps://github.com/python/cpython/pull/142656/commits/3a81b0d9618d9cf894b15f32bfe6685623b7d842
https://github.com/python/cpython/tree/3a81b0d9618d9cf894b15f32bfe6685623b7d842
Merge branch 'fix-issue-142651' of https://github.com/chaope/cpython into fix-issue-142651https://github.com/python/cpython/pull/142656/commits/23825f42e8a8750f0939f65d754c054883f7eb3b
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
23825f4https://github.com/python/cpython/pull/142656/commits/23825f42e8a8750f0939f65d754c054883f7eb3b
https://github.com/python/cpython/tree/23825f42e8a8750f0939f65d754c054883f7eb3b
move self._executor.shutdown to addCleanuphttps://github.com/python/cpython/pull/142656/commits/a76318e79772302eb779eb65e815b69d41e8c2ce
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
a76318ehttps://github.com/python/cpython/pull/142656/commits/a76318e79772302eb779eb65e815b69d41e8c2ce
https://github.com/python/cpython/tree/a76318e79772302eb779eb65e815b69d41e8c2ce
use 3k loopshttps://github.com/python/cpython/pull/142656/commits/8e2348c4a2d8b8c98769476a63fa83a599170c6a
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
8e2348chttps://github.com/python/cpython/pull/142656/commits/8e2348c4a2d8b8c98769476a63fa83a599170c6a
https://github.com/python/cpython/tree/8e2348c4a2d8b8c98769476a63fa83a599170c6a
add @requires_resource('cpu')https://github.com/python/cpython/pull/142656/commits/e7dcc5752b36b78eac687acdb0f07d2e15fe599f
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
e7dcc57https://github.com/python/cpython/pull/142656/commits/e7dcc5752b36b78eac687acdb0f07d2e15fe599f
https://github.com/python/cpython/tree/e7dcc5752b36b78eac687acdb0f07d2e15fe599f
update test according to commentshttps://github.com/python/cpython/pull/142656/commits/851f698a6b6bd80ecaf1947e6293047807e13c1d
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
851f698https://github.com/python/cpython/pull/142656/commits/851f698a6b6bd80ecaf1947e6293047807e13c1d
https://github.com/python/cpython/tree/851f698a6b6bd80ecaf1947e6293047807e13c1d
update according to commentshttps://github.com/python/cpython/pull/142656/commits/3b298676c60f57be008fcab45a3ae9e3ede3a189
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
3b29867https://github.com/python/cpython/pull/142656/commits/3b298676c60f57be008fcab45a3ae9e3ede3a189
https://github.com/python/cpython/tree/3b298676c60f57be008fcab45a3ae9e3ede3a189
use threading_helper.start_threadshttps://github.com/python/cpython/pull/142656/commits/16232b89c15a4a1869e174958851bb209aaa55b4
https://github.com/chaope
chaopehttps://github.com/python/cpython/commits?author=chaope
16232b8https://github.com/python/cpython/pull/142656/commits/16232b89c15a4a1869e174958851bb209aaa55b4
https://github.com/python/cpython/tree/16232b89c15a4a1869e174958851bb209aaa55b4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.