We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Prior to Python 3.12, we can close a just created coroutine, thus, the following test passes:
from inspect import getcoroutinestate, CORO_CLOSED async def do_nothing(): pass def test_immediate_close(): coro = do_nothing() coro.close() assert getcoroutinestate(coro) == CORO_CLOSED
But in Python 3.12, the assertion fails and getcoroutinestate(coro) still is CORO_CREATED after the coro.close(). You can confirm it from https://github.com/gottadiveintopython/py312/actions/runs/6571303025/job/17850194150.
getcoroutinestate(coro)
CORO_CREATED
coro.close()
I don't know if this is an intensional change or not, but I just wanted to tell you.
3.12
Linux
The text was updated successfully, but these errors were encountered:
Same change on Windows. 3.13 like 3.12.
Sorry, something went wrong.
Bisected to f02fa64 cc @markshannon
No branches or pull requests
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_CREATEDafter 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
The text was updated successfully, but these errors were encountered: