MCPcopy Index your code
hub / github.com/python/cpython / FakeCoro

Class FakeCoro

Lib/test/test_asyncio/test_pep492.py:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17# Test that asyncio.iscoroutine() uses collections.abc.Coroutine
18class FakeCoro:
19 def send(self, value):
20 pass
21
22 def throw(self, typ, val=None, tb=None):
23 pass
24
25 def close(self):
26 pass
27
28 def __await__(self):
29 yield
30
31
32class BaseTest(test_utils.TestCase):

Callers 1

test_iscoroutineMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_iscoroutineMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…