| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b9833578-2bda-ded6-fc37-0d7f1a84d247 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D88E:C198F:AD60EB:E9A8A2:6969E76B |
| html-safe-nonce | 90326f7a7b539dfa8a1e41ce0193f2b5bd87c6523f4c1074105cc19e4802d36e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODhFOkMxOThGOkFENjBFQjpFOUE4QTI6Njk2OUU3NkIiLCJ2aXNpdG9yX2lkIjoiNDEyMTgyMDIwNTI0MDkzNjMwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ed94df4ae89579b2c4b05113831c53ee9a0d06390f01d1de2abfe1353dc50baf |
| hovercard-subject-tag | pull_request:1254284223 |
| 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/102254/files |
| twitter:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1152074?s=400&v=4 |
| og:image:alt | This includes some cleanup, some tweaks to the existing tests, and a bunch of new test cases. It is all related to fixing the refleaks introduced by 096d009. I haven't been able to find the l... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/102254/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F102254%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| 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 |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| 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/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%2F102254%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/102254/files |
| Reload | https://github.com/python/cpython/pull/102254/files |
| Reload | https://github.com/python/cpython/pull/102254/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/102254/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| 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.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/102254/files |
|
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
| 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 |
| ericsnowcurrently | https://github.com/ericsnowcurrently |
| python:main | https://github.com/python/cpython/tree/main |
| ericsnowcurrently:fix-ext-module-refleaks | https://github.com/ericsnowcurrently/cpython/tree/fix-ext-module-refleaks |
|
Conversation
2
| https://github.com/python/cpython/pull/102254 |
|
Commits
17
| https://github.com/python/cpython/pull/102254/commits |
|
Checks
0
| https://github.com/python/cpython/pull/102254/checks |
|
Files changed
| https://github.com/python/cpython/pull/102254/files |
| Please reload this page | https://github.com/python/cpython/pull/102254/files |
|
gh-102251: Updates to test_imp Toward Fixing Some Refleaks
| https://github.com/python/cpython/pull/102254/files#top |
|
Show all changes
17 commits
| https://github.com/python/cpython/pull/102254/files |
|
2be855c
Stop skipping the tests.
ericsnowcurrently Feb 17, 2023
| https://github.com/python/cpython/pull/102254/commits/2be855c8358e3f382c2fa18ac85263449a7c1ef7 |
|
9bbedda
_modules_by_index_clear() -> _modules_by_index_clear_one().
ericsnowcurrently Feb 17, 2023
| https://github.com/python/cpython/pull/102254/commits/9bbeddadba9071737cf3b3fec988e0e25c58911a |
|
83f42d6
Add an explanation of what happens when extensions are loaded.
ericsnowcurrently Feb 17, 2023
| https://github.com/python/cpython/pull/102254/commits/83f42d62307d66cf97eb24806f5e0f376a855c32 |
|
828a734
Add _forget_extension().
ericsnowcurrently Feb 17, 2023
| https://github.com/python/cpython/pull/102254/commits/828a734364ccfe94281f1c960396cd79f417cfa9 |
|
e9096cd
Clean up test_singlephase_multiple_interpreters.
ericsnowcurrently Feb 17, 2023
| https://github.com/python/cpython/pull/102254/commits/e9096cd7839395a5dedcbe63c9ecc5ad9a211198 |
|
c993f97
Add another test case.
ericsnowcurrently Feb 17, 2023
| https://github.com/python/cpython/pull/102254/commits/c993f970782a823519e74e554087eba1f720ab4f |
|
cc5c771
Expand test_singlephase_multiple_interpreters.
ericsnowcurrently Feb 18, 2023
| https://github.com/python/cpython/pull/102254/commits/cc5c771a441ac2c0b7df22e9d7a0afa768087b6f |
|
08741b8
Clean up the tests.
ericsnowcurrently Feb 22, 2023
| https://github.com/python/cpython/pull/102254/commits/08741b85c74921a4d4ee2c296da704a80f18f62c |
|
31716e9
Clean up clear_singlephase_extension().
ericsnowcurrently Feb 22, 2023
| https://github.com/python/cpython/pull/102254/commits/31716e917aa65294ac6cf12b5eb844ea483f3e8c |
|
2c3dd42
Add a check.
ericsnowcurrently Feb 22, 2023
| https://github.com/python/cpython/pull/102254/commits/2c3dd42754e719975c59160d1725ff4bda928f9f |
|
a353e7e
Fix a typo.
ericsnowcurrently Feb 22, 2023
| https://github.com/python/cpython/pull/102254/commits/a353e7e9640c38e7a11e68749e38095b1ba3fa11 |
|
c6a39e3
script -> snapshot_script.
ericsnowcurrently Feb 22, 2023
| https://github.com/python/cpython/pull/102254/commits/c6a39e38d423bf7549d96f382fc776be849adffe |
|
0c65700
Use spec_from_file_location() in imp.load_dynamic().
ericsnowcurrently Feb 22, 2023
| https://github.com/python/cpython/pull/102254/commits/0c65700909bf91843938c2cb9a6add0caa891b65 |
|
993484e
Update single-phase-init tests.
ericsnowcurrently Feb 23, 2023
| https://github.com/python/cpython/pull/102254/commits/993484e9ca769d7308e515020e923ddd0467f645 |
|
fc94060
Do the initial cleanup in setUpClass().
ericsnowcurrently Feb 24, 2023
| https://github.com/python/cpython/pull/102254/commits/fc940603fc0b6cc6b0ccf05b4740f971b2df7f01 |
|
3e2a1dd
Move the requires_load_dynamic decorator to the class.
ericsnowcurrently Feb 25, 2023
| https://github.com/python/cpython/pull/102254/commits/3e2a1ddb1f5dc9022c4e1b8dc9f5976d56c7d431 |
|
f0ce607
For now, skip the tests during refleak detection.
ericsnowcurrently Feb 25, 2023
| https://github.com/python/cpython/pull/102254/commits/f0ce6077b4441de1b54cc951f86eec64f45ebda1 |
|
Clear filters
| https://github.com/python/cpython/pull/102254/files |
| Please reload this page | https://github.com/python/cpython/pull/102254/files |
| Please reload this page | https://github.com/python/cpython/pull/102254/files |
|
imp.py
| https://github.com/python/cpython/pull/102254/files#diff-5b7d05748b6c9c75126f97ecd81a3eb3260d42c1cfa54c0d8a9e4f5a2133e7f0 |
|
test_imp.py
| https://github.com/python/cpython/pull/102254/files#diff-9cc86d54c09f71fd861c830da33b68edd68a35a0305e87ebdf9e0fd7ee6bbfe4 |
|
_testsinglephase.c
| https://github.com/python/cpython/pull/102254/files#diff-3fbe563401944538a01a71448ef93250ea97fd91892c0656b6ebc0c72f5b96c8 |
|
import.c
| https://github.com/python/cpython/pull/102254/files#diff-28cfc3e2868980a79d93d2ebdc8747dcb9231f3dd7f2caef96e74107d1ea3bf3 |
| Lib/imp.py | https://github.com/python/cpython/pull/102254/files#diff-5b7d05748b6c9c75126f97ecd81a3eb3260d42c1cfa54c0d8a9e4f5a2133e7f0 |
|
View file
| https://github.com/ericsnowcurrently/cpython/blob/f0ce6077b4441de1b54cc951f86eec64f45ebda1/Lib/imp.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/102254/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/102254/files#diff-5b7d05748b6c9c75126f97ecd81a3eb3260d42c1cfa54c0d8a9e4f5a2133e7f0 |
|
| https://github.com/python/cpython/pull/102254/files#diff-5b7d05748b6c9c75126f97ecd81a3eb3260d42c1cfa54c0d8a9e4f5a2133e7f0 |
| Please reload this page | https://github.com/python/cpython/pull/102254/files |
|
| 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 |