-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Python 3.12 inspecting a coroutine using getcoroutinestate
returns the wrong state.
#111058
Comments
Same change on Windows. 3.13 like 3.12. |
Bisected to f02fa64 |
getcoroutinestate
returns the wrong state.
The coroutine is closed, as |
|
…losed coroutine/generator. (pythonGH-112428) (cherry picked from commit bfb576e) Co-authored-by: Irit Katriel <[email protected]>
Thanks @gottadiveintopython for the report and Irit for fixing it! |
…losed coroutine/generator. (python#112428)
…losed coroutine/generator. (python#112428)
Bug report
Bug description:
Prior to Python 3.12, we can close a just created coroutine, thus, the following test passes:
But in Python 3.12, the assertion fails and
getcoroutinestate(coro)
still isCORO_CREATED
after thecoro.close()
. You can confirm it from https://github.com/gottadiveintopython/py312/actions/runs/6571303025/job/17850194150.I don't know if this is an intensional change or not, but I just wanted to tell you.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: