René's URL Explorer Experiment


Title: TST: Use correct method of clearing mock objects by QuLogic · Pull Request #31153 · matplotlib/matplotlib · GitHub

Open Graph Title: TST: Use correct method of clearing mock objects by QuLogic · Pull Request #31153 · matplotlib/matplotlib

X Title: TST: Use correct method of clearing mock objects by QuLogic · Pull Request #31153 · matplotlib/matplotlib

Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.

Open Graph Description: PR summary In Python 3.13.12 and 3.14.3, fixes for thread-safety of mock call_count meant that manually changing it no longer works [1]. Instead use the more correct reset_mock method. [1] python/c...

X Description: PR summary In Python 3.13.12 and 3.14.3, fixes for thread-safety of mock call_count meant that manually changing it no longer works [1]. Instead use the more correct reset_mock method. [1] python/c...

Opengraph URL: https://github.com/matplotlib/matplotlib/pull/31153

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7954f043-1287-0c5b-ed3b-dfb18f7ed72e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB780:10F9C5:4FDC1F:695752:6A518823
html-safe-nonce84dc5be51c3282c4e52ef09e1e0dc4b54f958ca32b994cfc67896ded9d87e03b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzgwOjEwRjlDNTo0RkRDMUY6Njk1NzUyOjZBNTE4ODIzIiwidmlzaXRvcl9pZCI6IjgzNTEwNDIyMDc3NjgyMTc2MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac25948c7ce92f04d77b13659dbc2dad2b490116f7918281931803ca49c8e85482
hovercard-subject-tagpull_request:3281930875
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/matplotlib/matplotlib/31153/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2bae49192cd358395caac86a64efccd955d6213d7c9caedba44bab530bab60d9/matplotlib/matplotlib/pull/31153
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2bae49192cd358395caac86a64efccd955d6213d7c9caedba44bab530bab60d9/matplotlib/matplotlib/pull/31153
og:image:altPR summary In Python 3.13.12 and 3.14.3, fixes for thread-safety of mock call_count meant that manually changing it no longer works [1]. Instead use the more correct reset_mock method. [1] python/c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameQuLogic
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
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
releasecb77a7b8b06cd86c243be33fd8e7922d70a9d243
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/pull/31153#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F31153
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%2Fmatplotlib%2Fmatplotlib%2Fpull%2F31153
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/pull/31153
Reloadhttps://github.com/matplotlib/matplotlib/pull/31153
Reloadhttps://github.com/matplotlib/matplotlib/pull/31153
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/31153
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/31153
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 409 https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
ksundenhttps://github.com/ksunden
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
QuLogic:fix-mock-usagehttps://github.com/QuLogic/matplotlib/tree/fix-mock-usage
Conversationhttps://github.com/matplotlib/matplotlib/pull/31153
Commits1 (1)https://github.com/matplotlib/matplotlib/pull/31153/commits
Checkshttps://github.com/matplotlib/matplotlib/pull/31153/checks
Files changedhttps://github.com/matplotlib/matplotlib/pull/31153/files
TST: Use correct method of clearing mock objectshttps://github.com/matplotlib/matplotlib/pull/31153#top
ksundenhttps://github.com/ksunden
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
QuLogic:fix-mock-usagehttps://github.com/QuLogic/matplotlib/tree/fix-mock-usage
https://github.com/QuLogic
QuLogichttps://github.com/QuLogic
Feb 13, 2026https://github.com/matplotlib/matplotlib/pull/31153#issue-3938363153
python/cpython#142651 (comment)https://github.com/python/cpython/issues/142651#issuecomment-3872242970
#31112https://github.com/matplotlib/matplotlib/issues/31112
link the related issuehttps://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
testedhttps://matplotlib.org/devdocs/devel/testing.html
examplehttps://matplotlib.org/devdocs/devel/document.html#write-examples-and-tutorials
directive and release notehttps://matplotlib.org/devdocs/devel/api_changes.html#announce-changes-deprecations-and-new-features
generalhttps://matplotlib.org/devdocs/devel/document.html#write-rest-pages
docstringhttps://matplotlib.org/devdocs/devel/document.html#write-docstrings
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/31153
https://github.com/QuLogic
TST: Use correct method of clearing mock objectshttps://github.com/matplotlib/matplotlib/pull/31153/commits/63207bbc8c5f791d1ca5565db39a8e2400165e7b
63207bbhttps://github.com/matplotlib/matplotlib/pull/31153/commits/63207bbc8c5f791d1ca5565db39a8e2400165e7b
python/cpython#142651 (comment)https://github.com/python/cpython/issues/142651#issuecomment-3872242970
https://github.com/QuLogic
QuLogichttps://github.com/QuLogic
v3.10.9https://github.com/matplotlib/matplotlib/milestone/107
Feb 13, 2026https://github.com/matplotlib/matplotlib/pull/31153#event-22773458111
https://github.com/QuLogic
QuLogichttps://github.com/QuLogic
topic: testing https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20testing%22
Feb 13, 2026https://github.com/matplotlib/matplotlib/pull/31153#event-22773490671
https://github.com/ohemorange
ohemorangehttps://github.com/ohemorange
Feb 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-pullrequest-3938383518
Reset mock call count using reset_mock since new thread-safe implementation means it can no longer just be set to 0 certbot/certbot#10576 https://github.com/certbot/certbot/pull/10576
https://github.com/greglucas
greglucashttps://github.com/greglucas
Feb 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#pullrequestreview-3798709086
View reviewed changes https://github.com/matplotlib/matplotlib/pull/31153/files/63207bbc8c5f791d1ca5565db39a8e2400165e7b
https://github.com/QuLogic
QuLogichttps://github.com/QuLogic
Feb 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-pullrequest-3937963604
ci: Try pinning an older Python #31152 https://github.com/matplotlib/matplotlib/pull/31152
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
Feb 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#pullrequestreview-3798776985
View reviewed changes https://github.com/matplotlib/matplotlib/pull/31153/files/63207bbc8c5f791d1ca5565db39a8e2400165e7b
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
Feb 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#pullrequestreview-3798806562
View reviewed changes https://github.com/matplotlib/matplotlib/pull/31153/files/63207bbc8c5f791d1ca5565db39a8e2400165e7b
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
Feb 13, 2026https://github.com/matplotlib/matplotlib/pull/31153#issuecomment-3898695749
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/31153
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
Feb 13, 2026https://github.com/matplotlib/matplotlib/pull/31153#issuecomment-3898702879
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/31153
https://github.com/timhoffm
timhoffmhttps://github.com/timhoffm
Feb 13, 2026https://github.com/matplotlib/matplotlib/pull/31153#issuecomment-3898728129
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/31153
https://github.com/ksunden
ksundenhttps://github.com/ksunden
Feb 13, 2026https://github.com/matplotlib/matplotlib/pull/31153#issuecomment-3898963007
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/31153
https://github.com/ksunden
ksundenhttps://github.com/ksunden
d3b539chttps://github.com/matplotlib/matplotlib/commit/d3b539cdd9dabdb6b4ec1f699ae0369c8e3e75b6
Feb 13, 2026https://github.com/matplotlib/matplotlib/pull/31153#event-22775502137
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/31153
meeseeksmachinehttps://github.com/meeseeksmachine
Feb 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-commit-b9d7e7f
https://github.com/ksunden
https://github.com/meeseeksmachine
Backport PRhttps://github.com/meeseeksmachine/matplotlib/commit/b9d7e7f73eee09ebd33e9c8505c5d0c4d8866dcf
matplotlib#31153https://github.com/matplotlib/matplotlib/pull/31153
: TST: Use correct method of clearing moc…https://github.com/meeseeksmachine/matplotlib/commit/b9d7e7f73eee09ebd33e9c8505c5d0c4d8866dcf
b9d7e7fhttps://github.com/meeseeksmachine/matplotlib/commit/b9d7e7f73eee09ebd33e9c8505c5d0c4d8866dcf
https://github.com/meeseeksmachine
meeseeksmachinehttps://github.com/meeseeksmachine
Feb 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-pullrequest-3938753966
Backport PR #31153 on branch v3.10.x (TST: Use correct method of clearing mock objects) #31154 https://github.com/matplotlib/matplotlib/pull/31154
https://github.com/QuLogic
QuLogichttps://github.com/QuLogic
February 13, 2026 19:23https://github.com/matplotlib/matplotlib/pull/31153#event-22775529961
bmwhttps://github.com/bmw
Feb 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-commit-4c61a45
https://github.com/ohemorange
Reset mock call count using reset_mock since new thread-safe implemen…https://github.com/certbot/certbot/commit/4c61a450d4a843c66baab6d5d9a42ce0554e99d7
4c61a45https://github.com/certbot/certbot/commit/4c61a450d4a843c66baab6d5d9a42ce0554e99d7
#10576https://github.com/certbot/certbot/pull/10576
python/cpython#142651https://github.com/python/cpython/issues/142651
https://docs.python.org/3/library/unittest.mock.html#module-unittest.mockhttps://docs.python.org/3/library/unittest.mock.html#module-unittest.mock
https://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.call_counthttps://docs.python.org/3/library/unittest.mock.html#unittest.mock.Mock.call_count
matplotlib/matplotlib#31153https://github.com/matplotlib/matplotlib/pull/31153
timhoffmhttps://github.com/timhoffm
Feb 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-commit-cc7fe5a
https://github.com/timhoffm
Merge pull requesthttps://github.com/matplotlib/matplotlib/commit/cc7fe5a53ef53e472907514b76a14659e9995dc7
#31154https://github.com/matplotlib/matplotlib/pull/31154
from meeseeksmachine/auto-backport-of-pr-31…https://github.com/matplotlib/matplotlib/commit/cc7fe5a53ef53e472907514b76a14659e9995dc7
cc7fe5ahttps://github.com/matplotlib/matplotlib/commit/cc7fe5a53ef53e472907514b76a14659e9995dc7
#31153https://github.com/matplotlib/matplotlib/pull/31153
bmwiedemannhttps://github.com/bmwiedemann
Feb 18, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-commit-3854540
https://github.com/bmwiedemann
Update python-matplotlib to version 3.10.8 / rev 126 via SR 1333726https://github.com/bmwiedemann/openSUSE/commit/38545401ac2085a9d8135ec933a7cdbe2bd70a95
3854540https://github.com/bmwiedemann/openSUSE/commit/38545401ac2085a9d8135ec933a7cdbe2bd70a95
https://build.opensuse.org/request/show/1333726https://build.opensuse.org/request/show/1333726
matplotlib/matplotlib#31153https://github.com/matplotlib/matplotlib/pull/31153
wavebyrdhttps://github.com/wavebyrd
Mar 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-commit-7ebe6c2
https://github.com/ksunden
https://github.com/meeseeksmachine
Backport PRhttps://github.com/wavebyrd/matplotlib/commit/7ebe6c205aa51a82b2ac69d3ca60533b5400105f
matplotlib#31153https://github.com/matplotlib/matplotlib/pull/31153
: TST: Use correct method of clearing moc…https://github.com/wavebyrd/matplotlib/commit/7ebe6c205aa51a82b2ac69d3ca60533b5400105f
7ebe6c2https://github.com/wavebyrd/matplotlib/commit/7ebe6c205aa51a82b2ac69d3ca60533b5400105f
wavebyrdhttps://github.com/wavebyrd
Mar 13, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-commit-787719f
https://github.com/timhoffm
Merge pull requesthttps://github.com/wavebyrd/matplotlib/commit/787719f9c0ef8596c9de074e744eb79e527284f0
matplotlib#31154https://github.com/matplotlib/matplotlib/pull/31154
from meeseeksmachine/auto-backpor…https://github.com/wavebyrd/matplotlib/commit/787719f9c0ef8596c9de074e744eb79e527284f0
787719fhttps://github.com/wavebyrd/matplotlib/commit/787719f9c0ef8596c9de074e744eb79e527284f0
matplotlib#31153https://github.com/matplotlib/matplotlib/pull/31153
https://github.com/QuLogic
QuLogichttps://github.com/QuLogic
Mar 31, 2026 https://github.com/matplotlib/matplotlib/pull/31153#ref-issue-4178976022
Incompatibility with Python 3.15 alpha 7 #31429 https://github.com/matplotlib/matplotlib/issues/31429
Backport PR #31282 on branch v3.10.x (SEC: Block shell escapes in latex and ps commands) #31542 https://github.com/matplotlib/matplotlib/pull/31542
Backport PR #31248 on branch v3.10.x (SEC: Remove eval() from validate_cycler) #31543 https://github.com/matplotlib/matplotlib/pull/31543
merge up v3.10.9 #31560 https://github.com/matplotlib/matplotlib/pull/31560
https://github.co/hiddenchars
https://github.com/matplotlib/matplotlib/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F31153
https://github.com/tacaswell
tacaswell https://github.com/tacaswell
https://github.com/matplotlib/matplotlib/pull/31153/files/63207bbc8c5f791d1ca5565db39a8e2400165e7b
https://github.com/timhoffm
timhoffm https://github.com/timhoffm
https://github.com/matplotlib/matplotlib/pull/31153/files/63207bbc8c5f791d1ca5565db39a8e2400165e7b
https://github.com/greglucas
greglucas https://github.com/greglucas
https://github.com/matplotlib/matplotlib/pull/31153/files/63207bbc8c5f791d1ca5565db39a8e2400165e7b
topic: testing https://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20testing%22
v3.10.9 https://github.com/matplotlib/matplotlib/milestone/107
[TST] Upcoming dependency test failures https://github.com/matplotlib/matplotlib/issues/31112
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/31153
https://github.com/QuLogic
https://github.com/tacaswell
https://github.com/timhoffm
https://github.com/ksunden
https://github.com/greglucas
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.