-
-
Notifications
You must be signed in to change notification settings - Fork 448
Iteration exhaustion branch of asynchronous for loop is shown as missing #1158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I added a test for this on a branch, and it seems to do the right things for these Python versions: 3.7.10, 3.8.10, and 3.10.0b3. |
I tried the same tests from beanie on 3.8 and there it does seem to work correctly, i can not easily test the others right now. |
I've reported this against CPython https://bugs.python.org/issue44621. |
This CPython bug has been fixed in 3.9.7. |
I’ve run
coverage run --branch script.py
with Python 3.9.2 + coverage 5.5 and from Git commit 40c87e0.I would expect that no line or branch is shown as missing, however branch
8->exit
is shown as missing.Similarly, when using the following script, branch
8->11
is shown as missing, although running the script fails at line 11.When removing the
a = None
line or running on PyPy3.7 v7.3.4, no line or branch is shown as missing.Also, with the following synchronous version, no line or branch is shown as missing:
The text was updated successfully, but these errors were encountered: