Title: bpo-37251: MagicMock with function spec used as a spec in mock.patch should return a MagicMock by tirkarthi · Pull Request #14117 · python/cpython · GitHub
Open Graph Title: bpo-37251: MagicMock with function spec used as a spec in mock.patch should return a MagicMock by tirkarthi · Pull Request #14117 · python/cpython
X Title: bpo-37251: MagicMock with function spec used as a spec in mock.patch should return a MagicMock by tirkarthi · Pull Request #14117 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: MagicMock with a function spec will have __code__ object. When it is used a spec to mock.patch then __code__ object which is a MagicMock is used to detect if it's a coroutine. MagicMock.__code_...
X Description: MagicMock with a function spec will have __code__ object. When it is used a spec to mock.patch then __code__ object which is a MagicMock is used to detect if it's a coroutine. MagicMock.__c...
Opengraph URL: https://github.com/python/cpython/pull/14117
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:9ae800bd-8ffc-a3e9-911b-a08d36893b51 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A458:34D958:5F8DBF:811BED:6A555901 |
| html-safe-nonce | f82695a827a4fd41c6f0d81ceaa550ecb2a41490a2ec1c191f55191717417a44 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDU4OjM0RDk1ODo1RjhEQkY6ODExQkVEOjZBNTU1OTAxIiwidmlzaXRvcl9pZCI6IjQ2NTAxMzU3NzQzMzA5NjgzMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 223fa08ce80f455dcbddc7c80de823cefd40b55657368fb4ffd92fb1fa19bce4 |
| hovercard-subject-tag | pull_request:288567521 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/14117/commits |
| twitter:image | https://opengraph.githubassets.com/554c9143d747d7b898220635f15e0f10e2ee14012864aa3fbffb0c716db46a10/python/cpython/pull/14117 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/554c9143d747d7b898220635f15e0f10e2ee14012864aa3fbffb0c716db46a10/python/cpython/pull/14117 |
| og:image:alt | MagicMock with a function spec will have __code__ object. When it is used a spec to mock.patch then __code__ object which is a MagicMock is used to detect if it's a coroutine. MagicMock.__code_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tirkarthi |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 73595e82546ca2415571a2031890ab16ecb3001a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width