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

Method _callTestMethod

Lib/unittest/async_case.py:101–108  ·  view source on GitHub ↗
(self, method)

Source from the content-addressed store, hash-verified

99 self._callAsync(self.asyncSetUp)
100
101 def _callTestMethod(self, method):
102 result = self._callMaybeAsync(method)
103 if result is not None:
104 msg = (
105 f'It is deprecated to return a value that is not None '
106 f'from a test case ({method} returned {type(result).__name__!r})',
107 )
108 warnings.warn(msg, DeprecationWarning, stacklevel=4)
109
110 def _callTearDown(self):
111 self._callAsync(self.asyncTearDown)

Callers

nothing calls this directly

Calls 2

_callMaybeAsyncMethod · 0.95
warnMethod · 0.45

Tested by

no test coverage detected