Title: bpo-32299: Return patched dict when using patch.dict as a context manager by mariocj89 · Pull Request #11062 · python/cpython · GitHub
Open Graph Title: bpo-32299: Return patched dict when using patch.dict as a context manager by mariocj89 · Pull Request #11062 · python/cpython
X Title: bpo-32299: Return patched dict when using patch.dict as a context manager by mariocj89 · Pull Request #11062 · python/cpython
Description: Return the patched version of the dict when unittest.mock.patch.dict is used as a context manager. This change mirrors the rest of the APIs that patch objects in unittest.mock Closes: #4834 This PR brings the commit from the abandoned PR #4834 with the comments addressed. See #4834 (comment) https://bugs.python.org/issue32299
Open Graph Description: Return the patched version of the dict when unittest.mock.patch.dict is used as a context manager. This change mirrors the rest of the APIs that patch objects in unittest.mock Closes: #4834 This PR...
X Description: Return the patched version of the dict when unittest.mock.patch.dict is used as a context manager. This change mirrors the rest of the APIs that patch objects in unittest.mock Closes: #4834 This PR...
Opengraph URL: https://github.com/python/cpython/pull/11062
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a2e19f11-9e78-5b2e-dd16-3e268869ce82 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8356:29EB19:824AC5:B163B8:6A4D6C51 |
| html-safe-nonce | afcc17062fed62fa97f53a07d7d7c20874a6c9393219d57be670acf4dbc37b1a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzU2OjI5RUIxOTo4MjRBQzU6QjE2M0I4OjZBNEQ2QzUxIiwidmlzaXRvcl9pZCI6IjMzNTgzMTI5MDU2NTcxMTc3NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2bda4937ab6517d64b447a6c513be8c5f33f56af5252c7101b590d5d24c80f1c |
| hovercard-subject-tag | pull_request:237246942 |
| 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/11062/files |
| twitter:image | https://avatars.githubusercontent.com/u/3709683?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3709683?s=400&v=4 |
| og:image:alt | Return the patched version of the dict when unittest.mock.patch.dict is used as a context manager. This change mirrors the rest of the APIs that patch objects in unittest.mock Closes: #4834 This PR... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7db3950e3f59095e20a9789440c3dd554efc62d434882ead06ae05b5815605b9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cd8f6a71db61d6012a0cbb134be844fdbe9b8a45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width