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: gh-142651: Make call_count of Mock thread safe

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/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0183438d-f69a-35fb-aa5d-eed0381385e5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA4E0:1DC0B7:3AE13E:51B3B2:6A53750E
html-safe-noncef13572b0cf1fe717c4c58c76dd104c96926f9d8713f7897db55b43c1ff4388cc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEUwOjFEQzBCNzozQUUxM0U6NTFCM0IyOjZBNTM3NTBFIiwidmlzaXRvcl9pZCI6IjM4NzIwOTM0MjkyMjkxMjI4MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7abe51a54816e245310d49694d47d643340af2e862035bf8f7c019b4c9640081
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/142656/files
twitter:imagehttps://avatars.githubusercontent.com/u/13768674?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/13768674?s=400&v=4
og:image:altgh-142651: Make call_count of Mock thread safe
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142656%2Ffiles
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%2Ffiles
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%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/142656/files
Reloadhttps://github.com/python/cpython/pull/142656/files
Reloadhttps://github.com/python/cpython/pull/142656/files
Please reload this pagehttps://github.com/python/cpython/pull/142656/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/142656/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
Conversation 40 https://github.com/python/cpython/pull/142656
Commits 18 https://github.com/python/cpython/pull/142656/commits
Checks 52 https://github.com/python/cpython/pull/142656/checks
Files changed https://github.com/python/cpython/pull/142656/files
Please reload this pagehttps://github.com/python/cpython/pull/142656/files
gh-142651: Make call_count of Mock thread safe https://github.com/python/cpython/pull/142656/files#top
Show all changes 18 commits https://github.com/python/cpython/pull/142656/files
a401818 Make call_count of Mock thread safe chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/a401818402740042d643e1c26c5c407fe663b60d
d532d23 📜🤖 Added by blurb_it. blurb-it[bot] Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/d532d23633eeea55eb5ead7db88c51a1d1ab9fc3
fe7be86 update doc chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/fe7be86596dcb3cbb3483ceb3175d3e791f3cff7
29578a9 calculate call_count after append call_args_list chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/29578a94af07fc61fa68ae9e6ba9fa0f37aa531c
c2e4ca7 revert change on documentation for call_count. chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/c2e4ca7d882efc7a49314fafd68d5029cbc6e487
e9e6dfa revert unnecessary change. chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/e9e6dfa99d568641ea3d0ce52163421edfdb572e
3a4b590 revert blank line deletion chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/3a4b590768d37b3fe6a75b4e581c37e6512f7208
70e9107 added TestThreadingMockRaceCondition chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/70e91077ac791fe1ef7785e38e0fb9c6699dcc28
dc0d804 Update Misc/NEWS.d/next/Library/2025-12-13-06-17-44.gh-issue-142651.Z… chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/dc0d804c67e3e9095140be66ecdecedeaa1025b4
f05407e Update Lib/test/test_unittest/testmock/testthreadingmock.py chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/f05407ebd7594962f34f13c433481de882d39ce3
3a81b0d update test chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/3a81b0d9618d9cf894b15f32bfe6685623b7d842
23825f4 Merge branch 'fix-issue-142651' of https://github.com/chaope/cpython … chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/23825f42e8a8750f0939f65d754c054883f7eb3b
a76318e move self._executor.shutdown to addCleanup chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/a76318e79772302eb779eb65e815b69d41e8c2ce
8e2348c use 3k loops chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/8e2348c4a2d8b8c98769476a63fa83a599170c6a
e7dcc57 add @requires_resource('cpu') chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/e7dcc5752b36b78eac687acdb0f07d2e15fe599f
851f698 update test according to comments chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/851f698a6b6bd80ecaf1947e6293047807e13c1d
3b29867 update according to comments chaope Dec 13, 2025 https://github.com/python/cpython/pull/142656/commits/3b298676c60f57be008fcab45a3ae9e3ede3a189
16232b8 use threading_helper.start_threads chaope Dec 14, 2025 https://github.com/python/cpython/pull/142656/commits/16232b89c15a4a1869e174958851bb209aaa55b4
Clear filters https://github.com/python/cpython/pull/142656/files
Please reload this pagehttps://github.com/python/cpython/pull/142656/files
Please reload this pagehttps://github.com/python/cpython/pull/142656/files
testthreadingmock.py https://github.com/python/cpython/pull/142656/files#diff-e18ec3ab7692a91926fc78276eb4566663dec50650fbefe1c959132af6b13222
mock.py https://github.com/python/cpython/pull/142656/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a
2025-12-13-06-17-44.gh-issue-142651.ZRtBu4.rst https://github.com/python/cpython/pull/142656/files#diff-6bbc2ae3aeec2189862819549bf1accdc9aee33f6743722015039f5c41050ad5
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L623
Lib/test/test_unittest/testmock/testthreadingmock.pyhttps://github.com/python/cpython/pull/142656/files#diff-e18ec3ab7692a91926fc78276eb4566663dec50650fbefe1c959132af6b13222
View file https://github.com/python/cpython/blob/16232b89c15a4a1869e174958851bb209aaa55b4/Lib/test/test_unittest/testmock/testthreadingmock.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142656/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/142656/files
https://github.com/python/cpython/pull/142656/files#diff-e18ec3ab7692a91926fc78276eb4566663dec50650fbefe1c959132af6b13222
https://github.com/python/cpython/pull/142656/files#diff-e18ec3ab7692a91926fc78276eb4566663dec50650fbefe1c959132af6b13222
Please reload this pagehttps://github.com/python/cpython/pull/142656/files
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L622
Lib/unittest/mock.pyhttps://github.com/python/cpython/pull/142656/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a
View file https://github.com/python/cpython/blob/16232b89c15a4a1869e174958851bb209aaa55b4/Lib/unittest/mock.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142656/{{ revealButtonHref }}
https://github.com/python/cpython/pull/142656/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a
https://github.com/python/cpython/pull/142656/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a
Misc/NEWS.d/next/Library/2025-12-13-06-17-44.gh-issue-142651.ZRtBu4.rsthttps://github.com/python/cpython/pull/142656/files#diff-6bbc2ae3aeec2189862819549bf1accdc9aee33f6743722015039f5c41050ad5
View file https://github.com/python/cpython/blob/16232b89c15a4a1869e174958851bb209aaa55b4/Misc/NEWS.d/next/Library/2025-12-13-06-17-44.gh-issue-142651.ZRtBu4.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/142656/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/142656/files
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.