Sorry, something went wrong.
| self.loop._add_reader = mock.Mock() | ||
| self.loop._add_reader._is_coroutine = False |
There was a problem hiding this comment.
when asyncio.iscoroutinefunction was implemented as:
cpython/Lib/asyncio/coroutines.py
Lines 245 to 248 in 2f84144
this meant
however the implementation was changed to use a marker object:
cpython/Lib/asyncio/coroutines.py
Lines 16 to 23 in ec4745b
and so now the _is_coroutine = False work-around is redundant:
Sorry, something went wrong.
|
I don't think this needs a news entry |
Sorry, something went wrong.
There was a problem hiding this comment.
Since this just changes tests and the tests pass, I think this is okay.
Sorry, something went wrong.
|
Thanks @graingert for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
GH-94934 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
these work-arounds were made redundant by python/asyncio#459