| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:338be584-4c85-7a5d-d6d2-8949fd3d0875 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B3D0:5105D:3E6BB63:56AEE60:6A4F54FD |
| html-safe-nonce | 32a96c5d9d9ec9ea576dcc5c9e938e6747148146911b1d4a12b0561d2d962af1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0QwOjUxMDVEOjNFNkJCNjM6NTZBRUU2MDo2QTRGNTRGRCIsInZpc2l0b3JfaWQiOiI0Njg4NDc5NDA0MTAzMjU5Mzg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 42ebed7eb9df864fbdeab4a49a19966e7f6df4a16471ab60c12932f9a7584abf |
| hovercard-subject-tag | pull_request:172723412 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/5974/files |
| twitter:image | https://avatars.githubusercontent.com/u/15114356?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15114356?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue32933 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/5974/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5974%2Ffiles |
| 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%2F5974%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 |
| Reload | https://github.com/python/cpython/pull/5974/files |
| Reload | https://github.com/python/cpython/pull/5974/files |
| Reload | https://github.com/python/cpython/pull/5974/files |
| Please reload this page | https://github.com/python/cpython/pull/5974/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/5974/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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| berkerpeksag | https://github.com/berkerpeksag |
| python:master | https://github.com/python/cpython/tree/master |
|
Conversation
31
| https://github.com/python/cpython/pull/5974 |
|
Commits
13
| https://github.com/python/cpython/pull/5974/commits |
|
Checks
0
| https://github.com/python/cpython/pull/5974/checks |
|
Files changed
5
| https://github.com/python/cpython/pull/5974/files |
|
bpo-32933: Implement dunder iter method on mock_open
| https://github.com/python/cpython/pull/5974/files#top |
|
Show all changes
13 commits
| https://github.com/python/cpython/pull/5974/files |
|
68e008d
Implement and testing for Issue 32933 - support for dunder iter on mo…
TonyFlury Mar 4, 2018
| https://github.com/python/cpython/pull/5974/commits/68e008dedd9e01e19751dabdb5d9b59bc009aa13 |
|
3e65f55
Implement and testing for Issue 32933 - support for dunder iter on mo…
TonyFlury Mar 4, 2018
| https://github.com/python/cpython/pull/5974/commits/3e65f559da16f2e6d5e77977c7b2534c372dec82 |
|
1701b79
Changes as per Pull request review
TonyFlury Apr 29, 2018
| https://github.com/python/cpython/pull/5974/commits/1701b79f47a0c0f2f26c423c6b628f9a7222806b |
|
5af978e
Changes as per Pull request review - added NEWS entry and a small upd…
TonyFlury Apr 30, 2018
| https://github.com/python/cpython/pull/5974/commits/5af978ec858f5fc431f94e8d1a916abfb059e451 |
|
c1e0ddb
Update testmock.py
TonyFlury May 28, 2018
| https://github.com/python/cpython/pull/5974/commits/c1e0ddb4d9040e40f7e025b04c8cafa8503b9597 |
|
a8c1d4f
Update unittest.mock.rst
TonyFlury Jul 9, 2018
| https://github.com/python/cpython/pull/5974/commits/a8c1d4ff564495242b75ec8716d3295f4822a112 |
|
e62f05a
Some small changes
TonyFlury Jul 9, 2018
| https://github.com/python/cpython/pull/5974/commits/e62f05a2a1831d2e37841a47bb2988fae70bdccd |
|
a927fd2
Update 2018-04-30-22-43-31.bpo-32933.M3iI_y.rst
TonyFlury Jul 9, 2018
| https://github.com/python/cpython/pull/5974/commits/a927fd29bdad26b215c5393da7bf1acce2c67b95 |
|
646e9cd
fix style
berkerpeksag Jul 9, 2018
| https://github.com/python/cpython/pull/5974/commits/646e9cd3700d169c531270689e81062ffd22d74d |
|
7803a7c
fix reST markup
berkerpeksag Jul 9, 2018
| https://github.com/python/cpython/pull/5974/commits/7803a7c88049ee908492b278118f0d9b42a085b6 |
|
a043f17
Update testmock.py
TonyFlury Jul 9, 2018
| https://github.com/python/cpython/pull/5974/commits/a043f171d813e3455292fe3d408b3256f2c9711b |
|
75a5d18
Fixed whitespace issues in testwith.py
TonyFlury Jul 9, 2018
| https://github.com/python/cpython/pull/5974/commits/75a5d187141de02b020415bea090447fb57d356b |
|
624e75f
tweak test_mock_open_dunder_iter_issue
berkerpeksag Sep 12, 2018
| https://github.com/python/cpython/pull/5974/commits/624e75fd93fa5707e8fe5f45d8dc35df2725298a |
|
Clear filters
| https://github.com/python/cpython/pull/5974/files |
| Please reload this page | https://github.com/python/cpython/pull/5974/files |
| Please reload this page | https://github.com/python/cpython/pull/5974/files |
|
unittest.mock.rst
| https://github.com/python/cpython/pull/5974/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a |
|
mock.py
| https://github.com/python/cpython/pull/5974/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a |
|
testmock.py
| https://github.com/python/cpython/pull/5974/files#diff-8f62756a81a581bd6e786e17dc7067e56d2befefa048e94670ef45ca494ec0c9 |
|
testwith.py
| https://github.com/python/cpython/pull/5974/files#diff-d522ba950301ed0f359ce436714cefb6e2b397a5527caeec78be6bb4ae8c9077 |
|
2018-04-30-22-43-31.bpo-32933.M3iI_y.rst
| https://github.com/python/cpython/pull/5974/files#diff-5509d1cc51ea07eb7f70c77554759216d5f34e92008656d2b5ea5d022a8431d6 |
| Doc/library/unittest.mock.rst | https://github.com/python/cpython/pull/5974/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a |
|
View file
| https://github.com/python/cpython/blob/624e75fd93fa5707e8fe5f45d8dc35df2725298a/Doc/library/unittest.mock.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5974/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5974/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a |
|
| https://github.com/python/cpython/pull/5974/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a |
| Lib/unittest/mock.py | https://github.com/python/cpython/pull/5974/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a |
|
View file
| https://github.com/python/cpython/blob/624e75fd93fa5707e8fe5f45d8dc35df2725298a/Lib/unittest/mock.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5974/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5974/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a |
|
| https://github.com/python/cpython/pull/5974/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a |
|
| https://github.com/python/cpython/pull/5974/files#diff-347d0254250a1ab7ab8e31b405e2c35b74cd2838df4ee74f1b658a459eb91f1a |
| Lib/unittest/test/testmock/testmock.py | https://github.com/python/cpython/pull/5974/files#diff-8f62756a81a581bd6e786e17dc7067e56d2befefa048e94670ef45ca494ec0c9 |
|
View file
| https://github.com/python/cpython/blob/624e75fd93fa5707e8fe5f45d8dc35df2725298a/Lib/unittest/test/testmock/testmock.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5974/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5974/files#diff-8f62756a81a581bd6e786e17dc7067e56d2befefa048e94670ef45ca494ec0c9 |
|
| https://github.com/python/cpython/pull/5974/files#diff-8f62756a81a581bd6e786e17dc7067e56d2befefa048e94670ef45ca494ec0c9 |
| Lib/unittest/test/testmock/testwith.py | https://github.com/python/cpython/pull/5974/files#diff-d522ba950301ed0f359ce436714cefb6e2b397a5527caeec78be6bb4ae8c9077 |
|
View file
| https://github.com/python/cpython/blob/624e75fd93fa5707e8fe5f45d8dc35df2725298a/Lib/unittest/test/testmock/testwith.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5974/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5974/files#diff-d522ba950301ed0f359ce436714cefb6e2b397a5527caeec78be6bb4ae8c9077 |
|
| https://github.com/python/cpython/pull/5974/files#diff-d522ba950301ed0f359ce436714cefb6e2b397a5527caeec78be6bb4ae8c9077 |
|
| https://github.com/python/cpython/pull/5974/files#diff-d522ba950301ed0f359ce436714cefb6e2b397a5527caeec78be6bb4ae8c9077 |
| Misc/NEWS.d/next/Library/2018-04-30-22-43-31.bpo-32933.M3iI_y.rst | https://github.com/python/cpython/pull/5974/files#diff-5509d1cc51ea07eb7f70c77554759216d5f34e92008656d2b5ea5d022a8431d6 |
|
View file
| https://github.com/python/cpython/blob/624e75fd93fa5707e8fe5f45d8dc35df2725298a/Misc/NEWS.d/next/Library/2018-04-30-22-43-31.bpo-32933.M3iI_y.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5974/{{ revealButtonHref }} |
|
| 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 |