MCPcopy Create free account
hub / github.com/python/cpython / _error_message

Method _error_message

Lib/unittest/mock.py:2386–2388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2384 raise AssertionError(f'Expected await: {expected}\nNot awaited')
2385
2386 def _error_message():
2387 msg = self._format_mock_failure_message(args, kwargs, action='await')
2388 return msg
2389
2390 expected = self._call_matcher(_Call((args, kwargs), two=True))
2391 actual = self._call_matcher(self.await_args)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected