cpython/Lib/unittest
Abraham Toriz Cruz 5f5f11faf9 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').
2019-09-17 12:16:08 +01:00
..
test bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166) 2019-09-17 12:16:08 +01:00
__init__.py
__main__.py
async_case.py bpo-36373: Fix deprecation warnings (GH-15889) 2019-09-11 01:20:24 -07:00
case.py bpo-34596: Fallback to a default reason when @unittest.skip is uncalled (#9082) 2019-09-09 16:06:48 +02:00
loader.py
main.py
mock.py bpo-37828: Fix default mock_name in unittest.mock.assert_called error (GH-16166) 2019-09-17 12:16:08 +01:00
result.py Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
runner.py
signals.py
suite.py
util.py