SIGN IN SIGN UP

bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166)

In the format string for assert_called the evaluation order is incorrect and hence for mock's without name, 'None' is printed whereas it should be 'mock' like for other messages. The error message is ("Expected '%s' to have been called." % self._mock_name or 'mock').
A
Abraham Toriz Cruz committed
5f5f11faf9de0d8dcbe1a8a4eb35d2a4232d6eaa
Parent: 219fb9d
Committed by Pablo Galindo <Pablogsal@gmail.com> on 9/17/2019, 11:16:08 AM