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

Method close

Lib/test/test_asyncio/utils.py:381–389  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

379 self._time += advance
380
381 def close(self):
382 super().close()
383 if self._check_on_close:
384 try:
385 self._gen.send(0)
386 except StopIteration:
387 pass
388 else: # pragma: no cover
389 raise AssertionError("Time generator is not finished")
390
391 def _add_reader(self, fd, callback, *args, context=None):
392 self.readers[fd] = events.Handle(callback, args, self, context)

Callers 15

test_bytes_feedparserMethod · 0.45
_msgobjMethod · 0.45
teardownMethod · 0.45
handle_clientMethod · 0.45
start_callbackMethod · 0.45
stopMethod · 0.45
clientMethod · 0.45
server_handlerMethod · 0.45
run_testMethod · 0.45

Calls 2

superClass · 0.85
sendMethod · 0.45

Tested by 15

test_bytes_feedparserMethod · 0.36
_msgobjMethod · 0.36
handle_clientMethod · 0.36
start_callbackMethod · 0.36
stopMethod · 0.36
clientMethod · 0.36
server_handlerMethod · 0.36
run_testMethod · 0.36
serverMethod · 0.36