René's URL Explorer Experiment


Title: bpo-40275: Avoid importing logging in test.support by serhiy-storchaka · Pull Request #19601 · python/cpython · GitHub

Open Graph Title: bpo-40275: Avoid importing logging in test.support by serhiy-storchaka · Pull Request #19601 · python/cpython

X Title: bpo-40275: Avoid importing logging in test.support by serhiy-storchaka · Pull Request #19601 · python/cpython

Description: Import logging lazily in assertLogs() in unittest. Move TestHandler from test.support to test_logging. https://bugs.python.org/issue40275

Open Graph Description: Import logging lazily in assertLogs() in unittest. Move TestHandler from test.support to test_logging. https://bugs.python.org/issue40275

X Description: Import logging lazily in assertLogs() in unittest. Move TestHandler from test.support to test_logging. https://bugs.python.org/issue40275

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e009a86a-dbec-068f-f3de-4640b92127d9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDA34:1B1D69:BA69F:1042CD:696A61FD
html-safe-nonce713fe4eb6e0e39daf3124748e8816ab4c8aa995c28530226c2eb736ebee94d67
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTM0OjFCMUQ2OTpCQTY5RjoxMDQyQ0Q6Njk2QTYxRkQiLCJ2aXNpdG9yX2lkIjoiNjc4MDkyNjc1NzA0MTc1ODcxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc3f7d6dce010e0f21d45c1b90dbd32492c8b3ccbec70b802c18bf6b4b45dbe73
hovercard-subject-tagpull_request:405647935
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/19601/files
twitter:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3659035?s=400&v=4
og:image:altImport logging lazily in assertLogs() in unittest. Move TestHandler from test.support to test_logging. https://bugs.python.org/issue40275
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392
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
release87cbd411c2982752221b5751d583a515b23bf5fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/19601/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F19601%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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%2F19601%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/19601/files
Reloadhttps://github.com/python/cpython/pull/19601/files
Reloadhttps://github.com/python/cpython/pull/19601/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/19601/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 pagehttps://github.com/python/cpython/pull/19601/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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
serhiy-storchakahttps://github.com/serhiy-storchaka
python:masterhttps://github.com/python/cpython/tree/master
serhiy-storchaka:test-support-logginghttps://github.com/serhiy-storchaka/cpython/tree/test-support-logging
Conversation 15 https://github.com/python/cpython/pull/19601
Commits 7 https://github.com/python/cpython/pull/19601/commits
Checks 0 https://github.com/python/cpython/pull/19601/checks
Files changed https://github.com/python/cpython/pull/19601/files
Please reload this pagehttps://github.com/python/cpython/pull/19601/files
bpo-40275: Avoid importing logging in test.support https://github.com/python/cpython/pull/19601/files#top
Show all changes 7 commits https://github.com/python/cpython/pull/19601/files
739599e bpo-40275: Avoid importing logging in test.support serhiy-storchaka Apr 19, 2020 https://github.com/python/cpython/pull/19601/commits/739599e6090494ab452845f63587bf804e046219
3f1fc37 Move TestHandler to logging_helper. serhiy-storchaka Apr 20, 2020 https://github.com/python/cpython/pull/19601/commits/3f1fc37baa7e005e39865f5e2fed172164abb42c
5d59d23 Import logging and create _CapturingHandler only once. serhiy-storchaka Apr 20, 2020 https://github.com/python/cpython/pull/19601/commits/5d59d2380510ac589faa014d81b8ec9513603247
58ae645 Move _AssertLogsContext in a private unittest._log submodule. serhiy-storchaka Apr 20, 2020 https://github.com/python/cpython/pull/19601/commits/58ae64560918ad08c9e6d2faaaf3479fea65d7ed
7144f73 Merge branch 'master' into test-support-logging serhiy-storchaka Apr 25, 2020 https://github.com/python/cpython/pull/19601/commits/7144f73219077fd422fe7d384fce8b64e2edfdd6
3464c9a Remove empty lines at the end. serhiy-storchaka Apr 25, 2020 https://github.com/python/cpython/pull/19601/commits/3464c9a5195c3034babd65866fb5b9e11ae983a2
01ba090 Fix merging error. serhiy-storchaka Apr 25, 2020 https://github.com/python/cpython/pull/19601/commits/01ba090032cc8f1c112d3aeb71562fd2d1511570
Clear filters https://github.com/python/cpython/pull/19601/files
Please reload this pagehttps://github.com/python/cpython/pull/19601/files
Please reload this pagehttps://github.com/python/cpython/pull/19601/files
test.rst https://github.com/python/cpython/pull/19601/files#diff-9c776940ef00f1a36f9b8acab3dee7d70f992af8a03fbe01f5973ff9e2bcd454
__init__.py https://github.com/python/cpython/pull/19601/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
logging_helper.py https://github.com/python/cpython/pull/19601/files#diff-9f2b42a723d94c6a97b65ad2f464e5b0ef5446a7de9fb71fc6b8b631cc065761
test_logging.py https://github.com/python/cpython/pull/19601/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
_log.py https://github.com/python/cpython/pull/19601/files#diff-3019f6de1ec052fe4d8344bad8b7a82c19fd806a585eb71758ed213e21ed066b
case.py https://github.com/python/cpython/pull/19601/files#diff-c6fe1ffe930def48a6adf1fa99b974737bac586fdacccacd1474e7b2f11370eb
2020-04-20-19-06-55.bpo-40275.9UcN2g.rst https://github.com/python/cpython/pull/19601/files#diff-984206abcfd2af38241d6b66769c0047cc9410b8396970ae0550e44dfedd615b
Doc/library/test.rsthttps://github.com/python/cpython/pull/19601/files#diff-9c776940ef00f1a36f9b8acab3dee7d70f992af8a03fbe01f5973ff9e2bcd454
View file https://github.com/serhiy-storchaka/cpython/blob/01ba090032cc8f1c112d3aeb71562fd2d1511570/Doc/library/test.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/19601/{{ revealButtonHref }}
https://github.com/python/cpython/pull/19601/files#diff-9c776940ef00f1a36f9b8acab3dee7d70f992af8a03fbe01f5973ff9e2bcd454
https://github.com/python/cpython/pull/19601/files#diff-9c776940ef00f1a36f9b8acab3dee7d70f992af8a03fbe01f5973ff9e2bcd454
Lib/test/support/__init__.pyhttps://github.com/python/cpython/pull/19601/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
View file https://github.com/serhiy-storchaka/cpython/blob/01ba090032cc8f1c112d3aeb71562fd2d1511570/Lib/test/support/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/19601/{{ revealButtonHref }}
https://github.com/python/cpython/pull/19601/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/19601/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/19601/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/19601/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/19601/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
https://github.com/python/cpython/pull/19601/files#diff-d925268c057737ba320c489ca302fd5125f14840d22e50cfe226bdb5bb88ba8d
Lib/test/support/logging_helper.pyhttps://github.com/python/cpython/pull/19601/files#diff-9f2b42a723d94c6a97b65ad2f464e5b0ef5446a7de9fb71fc6b8b631cc065761
View file https://github.com/serhiy-storchaka/cpython/blob/01ba090032cc8f1c112d3aeb71562fd2d1511570/Lib/test/support/logging_helper.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/19601/{{ revealButtonHref }}
vstinnerhttps://github.com/vstinner
Apr 20, 2020https://github.com/python/cpython/pull/19601/files#r411514281
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/19601/files
serhiy-storchakahttps://github.com/serhiy-storchaka
Apr 20, 2020https://github.com/python/cpython/pull/19601/files#r411525724
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@vsajiphttps://github.com/vsajip
Please reload this pagehttps://github.com/python/cpython/pull/19601/files
Lib/test/test_logging.pyhttps://github.com/python/cpython/pull/19601/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
View file https://github.com/serhiy-storchaka/cpython/blob/01ba090032cc8f1c112d3aeb71562fd2d1511570/Lib/test/test_logging.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/19601/{{ revealButtonHref }}
https://github.com/python/cpython/pull/19601/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
https://github.com/python/cpython/pull/19601/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
https://github.com/python/cpython/pull/19601/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
https://github.com/python/cpython/pull/19601/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
https://github.com/python/cpython/pull/19601/files#diff-bc15bb717afb8343ceee4cd4219559dc397092dcde20271f6e8708c2b132976f
Lib/unittest/_log.pyhttps://github.com/python/cpython/pull/19601/files#diff-3019f6de1ec052fe4d8344bad8b7a82c19fd806a585eb71758ed213e21ed066b
View file https://github.com/serhiy-storchaka/cpython/blob/01ba090032cc8f1c112d3aeb71562fd2d1511570/Lib/unittest/_log.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/19601/{{ revealButtonHref }}
Lib/unittest/case.pyhttps://github.com/python/cpython/pull/19601/files#diff-c6fe1ffe930def48a6adf1fa99b974737bac586fdacccacd1474e7b2f11370eb
View file https://github.com/serhiy-storchaka/cpython/blob/01ba090032cc8f1c112d3aeb71562fd2d1511570/Lib/unittest/case.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/19601/{{ revealButtonHref }}
https://github.com/python/cpython/pull/19601/files#diff-c6fe1ffe930def48a6adf1fa99b974737bac586fdacccacd1474e7b2f11370eb
https://github.com/python/cpython/pull/19601/files#diff-c6fe1ffe930def48a6adf1fa99b974737bac586fdacccacd1474e7b2f11370eb
https://github.com/python/cpython/pull/19601/files#diff-c6fe1ffe930def48a6adf1fa99b974737bac586fdacccacd1474e7b2f11370eb
https://github.com/python/cpython/pull/19601/files#diff-c6fe1ffe930def48a6adf1fa99b974737bac586fdacccacd1474e7b2f11370eb
https://github.com/python/cpython/pull/19601/files#diff-c6fe1ffe930def48a6adf1fa99b974737bac586fdacccacd1474e7b2f11370eb
https://github.com/python/cpython/pull/19601/files#diff-c6fe1ffe930def48a6adf1fa99b974737bac586fdacccacd1474e7b2f11370eb
Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rsthttps://github.com/python/cpython/pull/19601/files#diff-984206abcfd2af38241d6b66769c0047cc9410b8396970ae0550e44dfedd615b
View file https://github.com/serhiy-storchaka/cpython/blob/01ba090032cc8f1c112d3aeb71562fd2d1511570/Misc/NEWS.d/next/Library/2020-04-20-19-06-55.bpo-40275.9UcN2g.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/19601/{{ revealButtonHref }}
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.