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

Class TestSelector

Lib/test/test_asyncio/utils.py:311–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309
310
311class TestSelector(selectors.BaseSelector):
312
313 def __init__(self):
314 self.keys = {}
315
316 def register(self, fileobj, events, data=None):
317 key = selectors.SelectorKey(fileobj, 0, events, data)
318 self.keys[fileobj] = key
319 return key
320
321 def unregister(self, fileobj):
322 return self.keys.pop(fileobj)
323
324 def select(self, timeout):
325 return []
326
327 def get_map(self):
328 return self.keys
329
330
331class TestLoop(base_events.BaseEventLoop):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…