(self, func, /, *args, **kwargs)
| 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' |
no test coverage detected