Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue47062

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Implement asyncio.Runner context manager
Type:Stage:resolved
Components:asyncioVersions:Python 3.11
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: asvetlov, kumaraditya, yselivanov, zach.ware
Priority:normalKeywords:patch

Created on2022-03-18 20:44 byasvetlov, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 31799mergedasvetlov,2022-03-18 20:45
PR 32113mergedasvetlov,2022-03-25 12:03
Messages (5)
msg415527 -(view)Author: Andrew Svetlov (asvetlov)*(Python committer)Date: 2022-03-18 20:44
Sometimes asyncio.run() is not enough.For example, unittest test case needs to call several async functions (setup, test, teardown) from the synchronous code using the same execution context and event loop.The proposal provides the following:with Runner() as runner:  runner.run(async_func())
msg415971 -(view)Author: Andrew Svetlov (asvetlov)*(Python committer)Date: 2022-03-24 19:51
New changeset4119d2d7c9e25acd4f16994fb92d656f8b7816d7 by Andrew Svetlov in branch 'main':bpo-47062: Implement asyncio.Runner context manager (GH-31799)https://github.com/python/cpython/commit/4119d2d7c9e25acd4f16994fb92d656f8b7816d7
msg415990 -(view)Author: Kumar Aditya (kumaraditya)*(Python triager)Date: 2022-03-25 08:36
With this change, Github Actions fails first time and it passes in the second rerun of running asyncio tests.Seehttps://github.com/python/cpython/runs/5682275663?check_suite_focus=true and main branch.
msg416016 -(view)Author: Andrew Svetlov (asvetlov)*(Python committer)Date: 2022-03-25 19:59
I believe the error is fixed by#47118
msg416021 -(view)Author: Andrew Svetlov (asvetlov)*(Python committer)Date: 2022-03-25 22:26
New changesetbad6ffaa64eecd33f4320ca31b1201b25cd8fc91 by Andrew Svetlov in branch 'main':bpo-47062: Rename factory argument to loop_factory (GH-32113)https://github.com/python/cpython/commit/bad6ffaa64eecd33f4320ca31b1201b25cd8fc91
History
DateUserActionArgs
2022-04-11 14:59:57adminsetgithub: 91218
2022-03-25 22:26:35asvetlovsetmessages: +msg416021
2022-03-25 19:59:14asvetlovsetmessages: +msg416016
2022-03-25 12:03:36asvetlovsetpull_requests: +pull_request30189
2022-03-25 08:36:20kumaradityasetnosy: +kumaraditya
messages: +msg415990
2022-03-24 19:51:47asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2022-03-24 19:51:26asvetlovsetmessages: +msg415971
2022-03-21 14:46:56zach.waresetnosy: +zach.ware
2022-03-18 20:45:28asvetlovsetkeywords: +patch
stage: patch review
pull_requests: +pull_request30075
2022-03-18 20:44:42asvetlovcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp