cpython/Lib/unittest/test
Samuel Freilich b5a7a4f0c2 bpo-36871: Handle spec errors in assert_has_calls (GH-16005)
The fix in PR 13261 handled the underlying issue about the spec for specific methods not being applied correctly, but it didn't fix the issue that was causing the misleading error message.

The code currently grabs a list of responses from _call_matcher (which may include exceptions). But it doesn't reach inside the list when checking if the result is an exception. This results in a misleading error message when one of the provided calls does not match the spec.


https://bugs.python.org/issue36871



Automerge-Triggered-By: @gpshead
2019-09-24 12:08:31 -07:00
..
testmock bpo-36871: Handle spec errors in assert_has_calls (GH-16005) 2019-09-24 12:08:31 -07: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 Fix typo in test comment (GH-11442) 2019-05-18 21:17:47 -04:00
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 bpo-35767: Fix unittest.loader to allow partials as test_functions (#11600) 2019-01-23 21:57:25 +01:00
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