René's URL Explorer Experiment


Title: bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable by blhsing · Pull Request #15565 · python/cpython · GitHub

Open Graph Title: bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable by blhsing · Pull Request #15565 · python/cpython

X Title: bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable by blhsing · Pull Request #15565 · python/cpython

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

Open Graph Description: As reported on StackOverflow: https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call The following code: from unittest.mock import MagicMock, call mm = Magi...

X Description: As reported on StackOverflow: https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call The following code: from unittest.mock import MagicMock, call mm = Magi...

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

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:d9e6e269-2cbc-9bdc-554b-b6fbeeceb49b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA634:A6E9E:476C684:634177C:6A54E7DA
html-safe-noncecc1a34940e1b64aa82fde1c00b0672bc8ac5ea9352fbf836c0cfcbe32ce05fc7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjM0OkE2RTlFOjQ3NkM2ODQ6NjM0MTc3Qzo2QTU0RTdEQSIsInZpc2l0b3JfaWQiOiI4MTA0MzgyNDk3OTUyMTYzODAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd200fa2f3191126c7336e0db0868050a42f4ad98e132978ffd74636504ba37a9
hovercard-subject-tagpull_request:312039820
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/python/cpython/15565/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/12bab1f9b8adb012ceb009fb82af2d21969e011faa48a4766ce3c95fad03fcda/python/cpython/pull/15565
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/12bab1f9b8adb012ceb009fb82af2d21969e011faa48a4766ce3c95fad03fcda/python/cpython/pull/15565
og:image:altAs reported on StackOverflow: https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call The following code: from unittest.mock import MagicMock, call mm = Magi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameblhsing
hostnamegithub.com
expected-hostnamegithub.com
Noneeae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839
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
releasebb1b4ffdc07c66de20ad344214f55df0aa364bd3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/15565#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F15565
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%2F15565
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=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/15565
Reloadhttps://github.com/python/cpython/pull/15565
Reloadhttps://github.com/python/cpython/pull/15565
Please reload this pagehttps://github.com/python/cpython/pull/15565
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/15565
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
voidspacehttps://github.com/voidspace
python:masterhttps://github.com/python/cpython/tree/master
blhsing:fix-issue-37972https://github.com/blhsing/cpython/tree/fix-issue-37972
Conversationhttps://github.com/python/cpython/pull/15565
Commits5 (5)https://github.com/python/cpython/pull/15565/commits
Checkshttps://github.com/python/cpython/pull/15565/checks
Files changedhttps://github.com/python/cpython/pull/15565/files
bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptablehttps://github.com/python/cpython/pull/15565#top
voidspacehttps://github.com/voidspace
python:masterhttps://github.com/python/cpython/tree/master
blhsing:fix-issue-37972https://github.com/blhsing/cpython/tree/fix-issue-37972
https://github.com/blhsing
blhsinghttps://github.com/blhsing
Aug 28, 2019https://github.com/python/cpython/pull/15565#issue-486613741
Please reload this pagehttps://github.com/python/cpython/pull/15565
https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-callhttps://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call
https://bugs.python.org/issue37972https://bugs.python.org/issue37972
Please reload this pagehttps://github.com/python/cpython/pull/15565
https://github.com/blhsing
bpo-37972: unittest.mock._Call now passes on __getitem__ to the __get…https://github.com/python/cpython/pull/15565/commits/6ab50345cc024089e143ca6d1408da6a26681c36
6ab5034https://github.com/python/cpython/pull/15565/commits/6ab50345cc024089e143ca6d1408da6a26681c36
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
Aug 28, 2019https://github.com/python/cpython/pull/15565#issuecomment-525926254
PSF contributor agreementhttps://www.python.org/psf/contrib/contrib-form/
the steps outlined in the CPython devguidehttps://devguide.python.org/pullrequest/#licensing
check yourselfhttps://check-python-cla.herokuapp.com/
Please reload this pagehttps://github.com/python/cpython/pull/15565
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA not signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20not%20signed%22
Aug 28, 2019https://github.com/python/cpython/pull/15565#event-2591971241
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 28, 2019https://github.com/python/cpython/pull/15565#event-2591971298
blurb-ithttps://github.com/apps/blurb-it
August 28, 2019 21:40https://github.com/python/cpython/pull/15565#commits-pushed-41fbfda
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/15565/commits/41fbfdab982f75c5d38d07dded7df46a51dbd945
41fbfdahttps://github.com/python/cpython/pull/15565/commits/41fbfdab982f75c5d38d07dded7df46a51dbd945
https://github.com/blhsing
Update 2019-08-28-21-40-12.bpo-37972.kP-n4L.rsthttps://github.com/python/cpython/pull/15565/commits/11ae68303ba110cbe94bd1ef3adf969c178d71ab
11ae683https://github.com/python/cpython/pull/15565/commits/11ae68303ba110cbe94bd1ef3adf969c178d71ab
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
CLA not signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20not%20signed%22
Aug 28, 2019https://github.com/python/cpython/pull/15565#event-2592114938
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
voidspacehttps://github.com/voidspace
September 10, 2019 15:16https://github.com/python/cpython/pull/15565#event-2622662251
blhsinghttps://github.com/blhsing
September 11, 2019 05:38https://github.com/python/cpython/pull/15565#commits-pushed-909f8ea
https://github.com/blhsing
bpo-37972: made all dunder methods chainable for _Callhttps://github.com/python/cpython/pull/15565/commits/909f8ea8ce54479bde3b3fbaeb7644cbf10a522b
909f8eahttps://github.com/python/cpython/pull/15565/commits/909f8ea8ce54479bde3b3fbaeb7644cbf10a522b
https://github.com/blhsing
bpo-37972: delegate only attributes of tuple instead to __getattr__https://github.com/python/cpython/pull/15565/commits/528ba1cbe0b8aad739a2650d9eb6c40e3c1c6c24
528ba1chttps://github.com/python/cpython/pull/15565/commits/528ba1cbe0b8aad739a2650d9eb6c40e3c1c6c24
https://github.com/voidspace
voidspacehttps://github.com/voidspace
Sep 11, 2019 https://github.com/python/cpython/pull/15565#pullrequestreview-286832775
View reviewed changes https://github.com/python/cpython/pull/15565/files/528ba1cbe0b8aad739a2650d9eb6c40e3c1c6c24
voidspacehttps://github.com/voidspace
https://github.com/python/cpython/pull/15565#pullrequestreview-286832775
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/15565
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Sep 11, 2019https://github.com/python/cpython/pull/15565#event-2625943073
https://github.com/voidspace
voidspacehttps://github.com/voidspace
needs backport to 3.8 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.8%22
Sep 11, 2019https://github.com/python/cpython/pull/15565#event-2625945001
https://github.com/voidspace
voidspacehttps://github.com/voidspace
72c3599https://github.com/python/cpython/commit/72c359912d36705a94fca8b63d80451905a14ae4
Sep 11, 2019https://github.com/python/cpython/pull/15565#event-2625947295
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Sep 11, 2019https://github.com/python/cpython/pull/15565#issuecomment-530406277
@blhsinghttps://github.com/blhsing
@voidspacehttps://github.com/voidspace
Please reload this pagehttps://github.com/python/cpython/pull/15565
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Sep 11, 2019https://github.com/python/cpython/pull/15565#event-2625947432
miss-islingtonhttps://github.com/miss-islington
Sep 11, 2019 https://github.com/python/cpython/pull/15565#ref-commit-3fad9a0
https://github.com/blhsing
https://github.com/miss-islington
bpo-37972: unittest.mock._Call now passes on __getitem__ to the __get…https://github.com/miss-islington/cpython/commit/3fad9a059a3185174ba3bf3044a31a0f681157d8
3fad9a0https://github.com/miss-islington/cpython/commit/3fad9a059a3185174ba3bf3044a31a0f681157d8
pythonGH-15565https://github.com/python/cpython/pull/15565
72c3599https://github.com/miss-islington/cpython/commit/72c359912d36705a94fca8b63d80451905a14ae4
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Sep 11, 2019https://github.com/python/cpython/pull/15565#issuecomment-530406370
GH-15965https://github.com/python/cpython/pull/15965
3.8 branchhttps://github.com/python/cpython/tree/3.8
Please reload this pagehttps://github.com/python/cpython/pull/15565
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.8 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.8%22
Sep 11, 2019https://github.com/python/cpython/pull/15565#event-2625948238
voidspacehttps://github.com/voidspace
Sep 12, 2019 https://github.com/python/cpython/pull/15565#ref-commit-db0d8a5
https://github.com/miss-islington
https://github.com/blhsing
https://github.com/voidspace
bpo-37972https://bugs.python.org/issue?@action=redirect&bpo=37972
: unittest.mock._Call now passes on __getitem__ to the __get…https://github.com/python/cpython/commit/db0d8a5b2c803d30d9df436e00b6627ec8e09a13
db0d8a5https://github.com/python/cpython/commit/db0d8a5b2c803d30d9df436e00b6627ec8e09a13
GH-15565https://github.com/python/cpython/pull/15565
GH-15965https://github.com/python/cpython/pull/15965
bpo-37972https://bugs.python.org/issue?@action=redirect&bpo=37972
bpo-37972https://bugs.python.org/issue?@action=redirect&bpo=37972
bpo-37972https://bugs.python.org/issue?@action=redirect&bpo=37972
bpo-37972https://bugs.python.org/issue?@action=redirect&bpo=37972
72c3599https://github.com/python/cpython/commit/72c359912d36705a94fca8b63d80451905a14ae4
DinoVhttps://github.com/DinoV
Sep 12, 2019 https://github.com/python/cpython/pull/15565#ref-commit-ce6552d
https://github.com/blhsing
https://github.com/DinoV
bpo-37972: unittest.mock._Call now passes on __getitem__ to the __get…https://github.com/DinoV/cpython/commit/ce6552d808441faf831c3f4c1d5220107165c8fc
ce6552dhttps://github.com/DinoV/cpython/commit/ce6552d808441faf831c3f4c1d5220107165c8fc
pythonGH-15565https://github.com/python/cpython/pull/15565
https://github.co/hiddenchars
https://github.com/python/cpython/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%2Fpython%2Fcpython%2Fpull%2F15565
https://github.com/voidspace
voidspace https://github.com/voidspace
https://github.com/python/cpython/pull/15565/files/528ba1cbe0b8aad739a2650d9eb6c40e3c1c6c24
Please reload this pagehttps://github.com/python/cpython/pull/15565
https://github.com/blhsing
https://github.com/the-knights-who-say-ni
https://github.com/miss-islington
https://github.com/bedevere-bot
https://github.com/voidspace
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.