René's URL Explorer Experiment


Title: gh-103780: Use patch instead of mock in asyncio unix events test by itamaro · Pull Request #103782 · python/cpython · GitHub

Open Graph Title: gh-103780: Use patch instead of mock in asyncio unix events test by itamaro · Pull Request #103782 · python/cpython

X Title: gh-103780: Use patch instead of mock in asyncio unix events test by itamaro · Pull Request #103782 · python/cpython

Description: Fixes gh-103780

Open Graph Description: Fixes gh-103780

X Description: Fixes gh-103780

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:c15f1152-6ccc-fdb2-8db7-95f5aa7ea341
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id93EC:3D0535:FC5E12:15287B3:6969912F
html-safe-nonce2045f3b3b26975ea6526ef53a2c18bc9567c3060eb794685f5ec3ee98ab03659
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0VDOjNEMDUzNTpGQzVFMTI6MTUyODdCMzo2OTY5OTEyRiIsInZpc2l0b3JfaWQiOiI1MTMxMzgxNTY0MTM3NjQwMjM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb4836ffd30efcd27cab2a09d63e067543ab2520a55093a324b2ae5445e8a6de4
hovercard-subject-tagpull_request:1325940455
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/103782/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3fba5c01bb619dcde3860dce26908cb9d58d1bd41a226257a5d695ecab7448d3/python/cpython/pull/103782
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3fba5c01bb619dcde3860dce26908cb9d58d1bd41a226257a5d695ecab7448d3/python/cpython/pull/103782
og:image:altFixes gh-103780
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameitamaro
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/103782#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103782
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%2F103782
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/103782
Reloadhttps://github.com/python/cpython/pull/103782
Reloadhttps://github.com/python/cpython/pull/103782
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/103782
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/103782
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
Jump to bottomhttps://github.com/python/cpython/pull/103782#issue-comment-box
carljmhttps://github.com/carljm
python:mainhttps://github.com/python/cpython/tree/main
itamaro:fix-gh-103780https://github.com/itamaro/cpython/tree/fix-gh-103780
gh-103780: Use patch instead of mock in asyncio unix events test https://github.com/python/cpython/pull/103782#top
carljmhttps://github.com/carljm
python:mainhttps://github.com/python/cpython/tree/main
itamaro:fix-gh-103780https://github.com/itamaro/cpython/tree/fix-gh-103780
Conversation 7 https://github.com/python/cpython/pull/103782
Commits 2 https://github.com/python/cpython/pull/103782/commits
Checks 1 https://github.com/python/cpython/pull/103782/checks
Files changed https://github.com/python/cpython/pull/103782/files
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/itamaro
itamarohttps://github.com/itamaro
Apr 24, 2023https://github.com/python/cpython/pull/103782#issue-1681816258
gh-103780https://github.com/python/cpython/issues/103780
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.com/itamaro
pythongh-103780https://github.com/python/cpython/issues/103780
: Use patch instead of mock in asyncio unix events testhttps://github.com/python/cpython/pull/103782/commits/a76f2e29b2c4fabb70ba230184ea14a248c7048e
a76f2e2https://github.com/python/cpython/pull/103782/commits/a76f2e29b2c4fabb70ba230184ea14a248c7048e
pythongh-103780https://github.com/python/cpython/issues/103780
https://github.com/itamaro
itamarohttps://github.com/itamaro
1st1https://github.com/1st1
asvetlovhttps://github.com/asvetlov
gvanrossumhttps://github.com/gvanrossum
kumaraditya303https://github.com/kumaraditya303
code ownershttps://github.com/python/cpython/blob/ed948e01bb68e3f026f38a7e43241d850ee1bfb5/.github/CODEOWNERS#L14
April 24, 2023 18:33https://github.com/python/cpython/pull/103782#event-9084634107
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9084634411
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Apr 24, 2023 https://github.com/python/cpython/pull/103782#ref-issue-1681810349
asyncio unix events test doesn't restore mocked unix_events.can_use_pidfd #103780 https://github.com/python/cpython/issues/103780
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9084634776
https://github.com/itamaro
itamarohttps://github.com/itamaro
Apr 24, 2023https://github.com/python/cpython/pull/103782#issuecomment-1520643793
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.com/carljm
carljmhttps://github.com/carljm
Apr 24, 2023 https://github.com/python/cpython/pull/103782#pullrequestreview-1398607851
View reviewed changes https://github.com/python/cpython/pull/103782/files/a76f2e29b2c4fabb70ba230184ea14a248c7048e
carljmhttps://github.com/carljm
https://github.com/python/cpython/pull/103782#pullrequestreview-1398607851
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9084728652
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Apr 24, 2023https://github.com/python/cpython/pull/103782#issuecomment-1520656759
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9084728731
https://github.com/itamaro
Use patch decorator instead of context managerhttps://github.com/python/cpython/pull/103782/commits/7e0479af9e419b0af9ab72e6c4397a61b0d24427
7e0479ahttps://github.com/python/cpython/pull/103782/commits/7e0479af9e419b0af9ab72e6c4397a61b0d24427
https://github.com/itamaro
itamarohttps://github.com/itamaro
Apr 24, 2023https://github.com/python/cpython/pull/103782#issuecomment-1520733582
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9085205267
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Apr 24, 2023https://github.com/python/cpython/pull/103782#issuecomment-1520733650
@carljmhttps://github.com/carljm
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
carljmhttps://github.com/carljm
April 24, 2023 19:46https://github.com/python/cpython/pull/103782#event-9085205606
https://github.com/carljm
carljmhttps://github.com/carljm
Apr 24, 2023 https://github.com/python/cpython/pull/103782#pullrequestreview-1398692051
View reviewed changes https://github.com/python/cpython/pull/103782/files/7e0479af9e419b0af9ab72e6c4397a61b0d24427
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9085215265
https://github.com/carljm
carljmhttps://github.com/carljm
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9085218913
https://github.com/carljm
carljmhttps://github.com/carljm
April 24, 2023 19:52https://github.com/python/cpython/pull/103782#event-9085246999
https://github.com/carljm
carljmhttps://github.com/carljm
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9085250039
https://github.com/carljm
carljmhttps://github.com/carljm
518050chttps://github.com/python/cpython/commit/518050ced18422fd00fadc1a81b0d942b98e2e5b
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9085417438
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Apr 24, 2023https://github.com/python/cpython/pull/103782#issuecomment-1520767568
@itamarohttps://github.com/itamaro
@carljmhttps://github.com/carljm
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9085417990
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Apr 24, 2023https://github.com/python/cpython/pull/103782#issuecomment-1520767631
@itamarohttps://github.com/itamaro
@carljmhttps://github.com/carljm
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
carljmhttps://github.com/carljm
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9085418660
https://github.com/itamaro
itamarohttps://github.com/itamaro
April 24, 2023 20:20https://github.com/python/cpython/pull/103782#event-9085482148
https://github.com/carljm
carljmhttps://github.com/carljm
Apr 24, 2023https://github.com/python/cpython/pull/103782#event-9085651569
carljmhttps://github.com/carljm
Apr 24, 2023 https://github.com/python/cpython/pull/103782#ref-commit-0de5bc6
https://github.com/carljm
Merge branch 'main' into superopthttps://github.com/carljm/cpython/commit/0de5bc6686926ad8e19a38e09d6ffea94fb1782a
0de5bc6https://github.com/carljm/cpython/commit/0de5bc6686926ad8e19a38e09d6ffea94fb1782a
pythongh-101517https://github.com/python/cpython/issues/101517
python#103550https://github.com/python/cpython/pull/103550
pythongh-103780https://github.com/python/cpython/issues/103780
python#103782https://github.com/python/cpython/pull/103782
carljmhttps://github.com/carljm
Apr 24, 2023 https://github.com/python/cpython/pull/103782#ref-commit-1972ca4
https://github.com/carljm
Merge branch 'superopt' into superopt_spechttps://github.com/carljm/cpython/commit/1972ca44dba6fdde991d5bc186f992fbb16c746e
1972ca4https://github.com/carljm/cpython/commit/1972ca44dba6fdde991d5bc186f992fbb16c746e
pythongh-101517https://github.com/python/cpython/issues/101517
python#103550https://github.com/python/cpython/pull/103550
pythongh-103780https://github.com/python/cpython/issues/103780
python#103782https://github.com/python/cpython/pull/103782
pythongh-102498https://github.com/python/cpython/issues/102498
python#102482https://github.com/python/cpython/pull/102482
pythongh-99184https://github.com/python/cpython/issues/99184
python#99244https://github.com/python/cpython/pull/99244
pythongh-99032https://github.com/python/cpython/issues/99032
python#93365https://github.com/python/cpython/pull/93365
pythongh-94300https://github.com/python/cpython/issues/94300
python#95318https://github.com/python/cpython/pull/95318
pythongh-103776https://github.com/python/cpython/issues/103776
pythonGH-103778https://github.com/python/cpython/pull/103778
pythongh-87092https://github.com/python/cpython/issues/87092
python#103456https://github.com/python/cpython/pull/103456
pythonGH-103727https://github.com/python/cpython/issues/103727
pythonGH-103775https://github.com/python/cpython/pull/103775
python#103751https://github.com/python/cpython/pull/103751
python#103770https://github.com/python/cpython/pull/103770
pythongh-94518https://github.com/python/cpython/issues/94518
python#94519https://github.com/python/cpython/pull/94519
pythonGH-65022https://github.com/python/cpython/issues/65022
python#102656https://github.com/python/cpython/pull/102656
pythongh-103323https://github.com/python/cpython/issues/103323
pythongh-103324https://github.com/python/cpython/pull/103324
pythongh-91687https://github.com/python/cpython/issues/91687
python#103773https://github.com/python/cpython/pull/103773
pythongh-103746https://github.com/python/cpython/issues/103746
python#103747https://github.com/python/cpython/pull/103747
pythongh-103765https://github.com/python/cpython/issues/103765
pythonGH-103769https://github.com/python/cpython/pull/103769
pythongh-87452https://github.com/python/cpython/issues/87452
python#103714https://github.com/python/cpython/pull/103714
pythonGH-102973https://github.com/python/cpython/issues/102973
python#103283https://github.com/python/cpython/pull/103283
pythongh-103091https://github.com/python/cpython/issues/103091
python#103095https://github.com/python/cpython/pull/103095
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
Feb 17, 2025https://github.com/python/cpython/pull/103782#event-16336466326
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103782
https://github.com/carljm
carljm https://github.com/carljm
https://github.com/python/cpython/pull/103782/files/7e0479af9e419b0af9ab72e6c4397a61b0d24427
https://github.com/1st1
1st1 https://github.com/1st1
https://github.com/asvetlov
asvetlov https://github.com/asvetlov
https://github.com/gvanrossum
gvanrossum https://github.com/gvanrossum
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
asyncio unix events test doesn't restore mocked unix_events.can_use_pidfd https://github.com/python/cpython/issues/103780
Please reload this pagehttps://github.com/python/cpython/pull/103782
https://github.com/itamaro
https://github.com/bedevere-bot
https://github.com/miss-islington
https://github.com/carljm
https://github.com/ZeroIntensity
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.