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

Method _callAsync

Lib/unittest/async_case.py:117–123  ·  view source on GitHub ↗
(self, func, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

115 self._callMaybeAsync(function, *args, **kwargs)
116
117 def _callAsync(self, func, /, *args, **kwargs):
118 assert self._asyncioRunner is not None, 'asyncio runner is not initialized'
119 assert inspect.iscoroutinefunction(func), f'{func!r} is not an async function'
120 return self._asyncioRunner.run(
121 func(*args, **kwargs),
122 context=self._asyncioTestContext
123 )
124
125 def _callMaybeAsync(self, func, /, *args, **kwargs):
126 assert self._asyncioRunner is not None, 'asyncio runner is not initialized'

Callers 2

_callSetUpMethod · 0.95
_callTearDownMethod · 0.95

Calls 2

funcFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected