← 返回首页
gh-94808: [coverage] Add an asynchronous generator test by zhanpon · Pull Request #97672 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

gh-94808: [coverage] Add an asynchronous generator test#97672

Merged
kumaraditya303 merged 2 commits into
python:mainfrom
zhanpon:improve-asyncgen-coverage
Nov 24, 2022
Merged

gh-94808: [coverage] Add an asynchronous generator test#97672
kumaraditya303 merged 2 commits into
python:mainfrom
zhanpon:improve-asyncgen-coverage

Conversation

zhanpon commented Sep 30, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

The test covers the following code path:

cpython/Objects/genobject.c

Lines 1780 to 1785 in ff54dd9

if (o->ags_gen->ag_running_async) {
PyErr_SetString(
PyExc_RuntimeError,
"anext(): asynchronous generator is already running");
return NULL;
}

Cover the error condition of 'asynchronous generator is already running'
bedevere-bot added awaiting review tests Tests in the Lib/test dir labels Sep 30, 2022

mdboom commented Sep 30, 2022

Copy link
Copy Markdown
Contributor

Thanks for improving our test coverage! Can you point to the specific lines that this adds coverage for?

zhanpon commented Sep 30, 2022

Copy link
Copy Markdown
Contributor Author

@mdboom Thank you for the comment! I've added it to the PR description.

Copy link
Copy Markdown
Contributor

Thanks.

zhanpon deleted the improve-asyncgen-coverage branch November 24, 2022 12:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Footer

© 2026 GitHub, Inc.