cpython/Lib/unittest/test
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
..
testmock 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
_test_warnings.py
dummy.py
support.py
test_assertions.py
test_async_case.py bpo-32972: Async test case (GH-13386) 2019-05-29 02:33:59 -07:00
test_break.py
test_case.py
test_discovery.py bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287) 2019-08-21 13:43:06 -07:00
test_functiontestcase.py
test_loader.py
test_program.py
test_result.py
test_runner.py [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620) 2019-06-05 18:22:31 +03:00
test_setups.py
test_skipping.py bpo-34596: Fallback to a default reason when @unittest.skip is uncalled (#9082) 2019-09-09 16:06:48 +02:00
test_suite.py