René's URL Explorer Experiment


Title: bpo-32299: unittest.mock.patch.dict now returns patched dict when used as context manager by ts-taiye · Pull Request #4834 · python/cpython · GitHub

Open Graph Title: bpo-32299: unittest.mock.patch.dict now returns patched dict when used as context manager by ts-taiye · Pull Request #4834 · python/cpython

X Title: bpo-32299: unittest.mock.patch.dict now returns patched dict when used as context manager by ts-taiye · Pull Request #4834 · python/cpython

Description: example: >>> from unittest.mock import patch >>> with patch.dict(a, a=2) as patched: ... print(patched) ... {'a': 2} >>> print(a) {'a': '1'} https://bugs.python.org/issue32299

Open Graph Description: example: >>> from unittest.mock import patch >>> with patch.dict(a, a=2) as patched: ... print(patched) ... {'a': 2} >>> print(a) {'a': '1'} ...

X Description: example: >>> from unittest.mock import patch >>> with patch.dict(a, a=2) as patched: ... print(patched) ... {'a': 2} >>&...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4c3e1364-ea20-c66d-09a2-311bffedd5db
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8610:F61E5:36E9CA:4A94B7:6A4D9DB0
html-safe-nonce48414aa43b5a826478fcf97140f407d5776d77f134fca09592355f4f1eceefdd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjEwOkY2MUU1OjM2RTlDQTo0QTk0Qjc6NkE0RDlEQjAiLCJ2aXNpdG9yX2lkIjoiNjA0MjM3OTk2MDU0NjMzNjE3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac94caa12dcab85dba084fbe19a5c08fab56e31c141bb8179881a6aa732e640bcc
hovercard-subject-tagpull_request:158048247
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/4834/files
twitter:imagehttps://avatars.githubusercontent.com/u/12246678?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/12246678?s=400&v=4
og:image:altexample: >>> from unittest.mock import patch >>> with patch.dict(a, a=2) as patched: ... print(patched) ... {'a': 2} >>> print(a) {'a': '1'} ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7f13faa65cccc9b729d674da83335d5dcfdfd193
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/4834/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F4834%2Ffiles
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2F4834%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/4834/files
Reloadhttps://github.com/python/cpython/pull/4834/files
Reloadhttps://github.com/python/cpython/pull/4834/files
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
ts-taiyehttps://github.com/ts-taiye
python:masterhttps://github.com/python/cpython/tree/master
ts-taiye:fix-issue-32299https://github.com/ts-taiye/cpython/tree/fix-issue-32299
Conversation 25 https://github.com/python/cpython/pull/4834
Commits 6 https://github.com/python/cpython/pull/4834/commits
Checks 0 https://github.com/python/cpython/pull/4834/checks
Files changed https://github.com/python/cpython/pull/4834/files
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
bpo-32299: unittest.mock.patch.dict now returns patched dict when used as context manager https://github.com/python/cpython/pull/4834/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/4834/files
ed25324 bpo-32299: unittest.patch.dict now returns patched dict when used as … taiye-ts Dec 13, 2017 https://github.com/python/cpython/pull/4834/commits/ed25324e2609d735b447ab551eace74003f24cae
6f0040f bpo-32299: unittest.patch.dict now returns patched dict when used as … taiye-ts Dec 13, 2017 https://github.com/python/cpython/pull/4834/commits/6f0040f2a6eb79fe8a2d2a2c6a8d9f6048cfdb6b
b5ceb1a Update 2017-12-13-17-49-56.bpo-32299.eqAPWs.rst asvetlov Dec 13, 2017 https://github.com/python/cpython/pull/4834/commits/b5ceb1a8c421dd6d437b97878a64ceb476b1f075
fe3ced7 bpo-32299: unittest.patch.dict now returns patched dict when used as … taiye-ts Dec 15, 2017 https://github.com/python/cpython/pull/4834/commits/fe3ced7f9ca1595948796837b577021b3b8518d7
396a6ee Merge branch 'fix-issue-32299' of https://github.com/ts-taiye/cpython… taiye-ts Dec 27, 2017 https://github.com/python/cpython/pull/4834/commits/396a6ee4f2c2bfd2794b560b72536f63d428cba8
f00a266 bpo-32299: unittest.patch.dict now returns patched dict when used as … taiye-ts Dec 29, 2017 https://github.com/python/cpython/pull/4834/commits/f00a26671604446eaef3a95885ac38568a906f01
Clear filters https://github.com/python/cpython/pull/4834/files
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
unittest.mock.rst https://github.com/python/cpython/pull/4834/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a
mock.py https://github.com/python/cpython/pull/4834/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a
testpatch.py https://github.com/python/cpython/pull/4834/files#diff-dcd0b5de9d01782451a153daca6b4ac8da777f793eae0cd0a8ad7f7af56aaa80
2017-12-13-17-49-56.bpo-32299.eqAPWs.rst https://github.com/python/cpython/pull/4834/files#diff-320bd43adcdccbcec10fa250ade36a2e7d95176a86f8753f4fae8a6b2000b3fd
Doc/library/unittest.mock.rsthttps://github.com/python/cpython/pull/4834/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a
View file https://github.com/ts-taiye/cpython/blob/f00a26671604446eaef3a95885ac38568a906f01/Doc/library/unittest.mock.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/4834/{{ revealButtonHref }}
https://github.com/python/cpython/pull/4834/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a
berkerpeksaghttps://github.com/berkerpeksag
Jan 23, 2018https://github.com/python/cpython/pull/4834/files#r163170214
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
https://github.com/python/cpython/pull/4834/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a
https://github.com/python/cpython/pull/4834/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a
berkerpeksaghttps://github.com/berkerpeksag
Jan 23, 2018https://github.com/python/cpython/pull/4834/files#r163168548
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
https://github.com/python/cpython/pull/4834/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a
Lib/unittest/mock.pyhttps://github.com/python/cpython/pull/4834/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a
View file https://github.com/ts-taiye/cpython/blob/f00a26671604446eaef3a95885ac38568a906f01/Lib/unittest/mock.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/4834/{{ revealButtonHref }}
https://github.com/python/cpython/pull/4834/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a
https://github.com/python/cpython/pull/4834/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a
Lib/unittest/test/testmock/testpatch.pyhttps://github.com/python/cpython/pull/4834/files#diff-dcd0b5de9d01782451a153daca6b4ac8da777f793eae0cd0a8ad7f7af56aaa80
View file https://github.com/ts-taiye/cpython/blob/f00a26671604446eaef3a95885ac38568a906f01/Lib/unittest/test/testmock/testpatch.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/4834/{{ revealButtonHref }}
https://github.com/python/cpython/pull/4834/files#diff-dcd0b5de9d01782451a153daca6b4ac8da777f793eae0cd0a8ad7f7af56aaa80
berkerpeksaghttps://github.com/berkerpeksag
Jan 23, 2018https://github.com/python/cpython/pull/4834/files#r163169257
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
cpython/Lib/unittest/case.pyhttps://github.com/python/cpython/blob/83c8675edb4fe278c5d930f7865977a5d3c7168a/Lib/unittest/case.py#L423
83c8675https://github.com/python/cpython/commit/83c8675edb4fe278c5d930f7865977a5d3c7168a
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
https://github.com/python/cpython/pull/4834/files#diff-dcd0b5de9d01782451a153daca6b4ac8da777f793eae0cd0a8ad7f7af56aaa80
Misc/NEWS.d/next/Library/2017-12-13-17-49-56.bpo-32299.eqAPWs.rsthttps://github.com/python/cpython/pull/4834/files#diff-320bd43adcdccbcec10fa250ade36a2e7d95176a86f8753f4fae8a6b2000b3fd
View file https://github.com/ts-taiye/cpython/blob/f00a26671604446eaef3a95885ac38568a906f01/Misc/NEWS.d/next/Library/2017-12-13-17-49-56.bpo-32299.eqAPWs.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/4834/{{ revealButtonHref }}
berkerpeksaghttps://github.com/berkerpeksag
Jan 23, 2018https://github.com/python/cpython/pull/4834/files#r163169433
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
berkerpeksaghttps://github.com/berkerpeksag
Jan 23, 2018https://github.com/python/cpython/pull/4834/files#r163169513
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
berkerpeksaghttps://github.com/berkerpeksag
Jan 23, 2018https://github.com/python/cpython/pull/4834/files#r163169581
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/4834/files
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.