| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:d9e6e269-2cbc-9bdc-554b-b6fbeeceb49b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A634:A6E9E:476C684:634177C:6A54E7DA |
| html-safe-nonce | cc1a34940e1b64aa82fde1c00b0672bc8ac5ea9352fbf836c0cfcbe32ce05fc7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjM0OkE2RTlFOjQ3NkM2ODQ6NjM0MTc3Qzo2QTU0RTdEQSIsInZpc2l0b3JfaWQiOiI4MTA0MzgyNDk3OTUyMTYzODAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d200fa2f3191126c7336e0db0868050a42f4ad98e132978ffd74636504ba37a9 |
| hovercard-subject-tag | pull_request:312039820 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/15565/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/12bab1f9b8adb012ceb009fb82af2d21969e011faa48a4766ce3c95fad03fcda/python/cpython/pull/15565 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12bab1f9b8adb012ceb009fb82af2d21969e011faa48a4766ce3c95fad03fcda/python/cpython/pull/15565 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blhsing |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bb1b4ffdc07c66de20ad344214f55df0aa364bd3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/python/cpython/pull/15565 |
| Reload | https://github.com/python/cpython/pull/15565 |
| Reload | https://github.com/python/cpython/pull/15565 |
| Please reload this page | https://github.com/python/cpython/pull/15565 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://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 |
| voidspace | https://github.com/voidspace |
| python:master | https://github.com/python/cpython/tree/master |
| blhsing:fix-issue-37972 | https://github.com/blhsing/cpython/tree/fix-issue-37972 |
| Conversation | https://github.com/python/cpython/pull/15565 |
| Commits5 (5) | https://github.com/python/cpython/pull/15565/commits |
| Checks | https://github.com/python/cpython/pull/15565/checks |
| Files changed | https://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 subscriptable | https://github.com/python/cpython/pull/15565#top |
| voidspace | https://github.com/voidspace |
| python:master | https://github.com/python/cpython/tree/master |
| blhsing:fix-issue-37972 | https://github.com/blhsing/cpython/tree/fix-issue-37972 |
|
| https://github.com/blhsing |
| blhsing | https://github.com/blhsing |
| Aug 28, 2019 | https://github.com/python/cpython/pull/15565#issue-486613741 |
| Please reload this page | https://github.com/python/cpython/pull/15565 |
| https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call | https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call |
| https://bugs.python.org/issue37972 | https://bugs.python.org/issue37972 |
| Please reload this page | https://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 |
| 6ab5034 | https://github.com/python/cpython/pull/15565/commits/6ab50345cc024089e143ca6d1408da6a26681c36 |
| https://github.com/the-knights-who-say-ni |
| the-knights-who-say-ni | https://github.com/the-knights-who-say-ni |
| Aug 28, 2019 | https://github.com/python/cpython/pull/15565#issuecomment-525926254 |
| PSF contributor agreement | https://www.python.org/psf/contrib/contrib-form/ |
| the steps outlined in the CPython devguide | https://devguide.python.org/pullrequest/#licensing |
| check yourself | https://check-python-cla.herokuapp.com/ |
| Please reload this page | https://github.com/python/cpython/pull/15565 |
| https://github.com/the-knights-who-say-ni |
| the-knights-who-say-ni | https://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, 2019 | https://github.com/python/cpython/pull/15565#event-2591971241 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Aug 28, 2019 | https://github.com/python/cpython/pull/15565#event-2591971298 |
| blurb-it | https://github.com/apps/blurb-it |
| August 28, 2019 21:40 | https://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 |
| 41fbfda | https://github.com/python/cpython/pull/15565/commits/41fbfdab982f75c5d38d07dded7df46a51dbd945 |
|
| https://github.com/blhsing |
| Update 2019-08-28-21-40-12.bpo-37972.kP-n4L.rst | https://github.com/python/cpython/pull/15565/commits/11ae68303ba110cbe94bd1ef3adf969c178d71ab |
| 11ae683 | https://github.com/python/cpython/pull/15565/commits/11ae68303ba110cbe94bd1ef3adf969c178d71ab |
| https://github.com/the-knights-who-say-ni |
| the-knights-who-say-ni | https://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, 2019 | https://github.com/python/cpython/pull/15565#event-2592114938 |
| https://github.com/gpshead |
| gpshead | https://github.com/gpshead |
| voidspace | https://github.com/voidspace |
| September 10, 2019 15:16 | https://github.com/python/cpython/pull/15565#event-2622662251 |
| blhsing | https://github.com/blhsing |
| September 11, 2019 05:38 | https://github.com/python/cpython/pull/15565#commits-pushed-909f8ea |
|
| https://github.com/blhsing |
| bpo-37972: made all dunder methods chainable for _Call | https://github.com/python/cpython/pull/15565/commits/909f8ea8ce54479bde3b3fbaeb7644cbf10a522b |
| 909f8ea | https://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 |
| 528ba1c | https://github.com/python/cpython/pull/15565/commits/528ba1cbe0b8aad739a2650d9eb6c40e3c1c6c24 |
| https://github.com/voidspace |
| voidspace | https://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 |
| voidspace | https://github.com/voidspace |
| https://github.com/python/cpython/pull/15565#pullrequestreview-286832775 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/15565 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://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, 2019 | https://github.com/python/cpython/pull/15565#event-2625943073 |
| https://github.com/voidspace |
| voidspace | https://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, 2019 | https://github.com/python/cpython/pull/15565#event-2625945001 |
| https://github.com/voidspace |
| voidspace | https://github.com/voidspace |
| 72c3599 | https://github.com/python/cpython/commit/72c359912d36705a94fca8b63d80451905a14ae4 |
| Sep 11, 2019 | https://github.com/python/cpython/pull/15565#event-2625947295 |
| https://github.com/miss-islington |
| miss-islington | https://github.com/miss-islington |
| Sep 11, 2019 | https://github.com/python/cpython/pull/15565#issuecomment-530406277 |
| @blhsing | https://github.com/blhsing |
| @voidspace | https://github.com/voidspace |
| Please reload this page | https://github.com/python/cpython/pull/15565 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Sep 11, 2019 | https://github.com/python/cpython/pull/15565#event-2625947432 |
| miss-islington | https://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 |
| 3fad9a0 | https://github.com/miss-islington/cpython/commit/3fad9a059a3185174ba3bf3044a31a0f681157d8 |
| pythonGH-15565 | https://github.com/python/cpython/pull/15565 |
| 72c3599 | https://github.com/miss-islington/cpython/commit/72c359912d36705a94fca8b63d80451905a14ae4 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
| Sep 11, 2019 | https://github.com/python/cpython/pull/15565#issuecomment-530406370 |
| GH-15965 | https://github.com/python/cpython/pull/15965 |
| 3.8 branch | https://github.com/python/cpython/tree/3.8 |
| Please reload this page | https://github.com/python/cpython/pull/15565 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://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, 2019 | https://github.com/python/cpython/pull/15565#event-2625948238 |
| voidspace | https://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-37972 | https://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 |
| db0d8a5 | https://github.com/python/cpython/commit/db0d8a5b2c803d30d9df436e00b6627ec8e09a13 |
| GH-15565 | https://github.com/python/cpython/pull/15565 |
| GH-15965 | https://github.com/python/cpython/pull/15965 |
| bpo-37972 | https://bugs.python.org/issue?@action=redirect&bpo=37972 |
| bpo-37972 | https://bugs.python.org/issue?@action=redirect&bpo=37972 |
| bpo-37972 | https://bugs.python.org/issue?@action=redirect&bpo=37972 |
| bpo-37972 | https://bugs.python.org/issue?@action=redirect&bpo=37972 |
| 72c3599 | https://github.com/python/cpython/commit/72c359912d36705a94fca8b63d80451905a14ae4 |
| DinoV | https://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 |
| ce6552d | https://github.com/DinoV/cpython/commit/ce6552d808441faf831c3f4c1d5220107165c8fc |
| pythonGH-15565 | https://github.com/python/cpython/pull/15565 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://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 page | https://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 |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |