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

Class MyFuture

Lib/test/test_asyncio/test_futures.py:139–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138 def test_isfuture(self):
139 class MyFuture:
140 _asyncio_future_blocking = None
141
142 def __init__(self):
143 self._asyncio_future_blocking = False
144
145 self.assertFalse(asyncio.isfuture(MyFuture))
146 self.assertTrue(asyncio.isfuture(MyFuture()))

Callers 1

test_isfutureMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_isfutureMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…