mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Issue25347 - Format the error message output of mock's assert_has_calls method.
Patch contributed by Robert Zimmerman.
This commit is contained in:
parent
2b06558769
commit
121edbf7e2
1 changed files with 1 additions and 1 deletions
|
|
@ -820,7 +820,7 @@ class NonCallableMock(Base):
|
||||||
if expected not in all_calls:
|
if expected not in all_calls:
|
||||||
raise AssertionError(
|
raise AssertionError(
|
||||||
'Calls not found.\nExpected: %r\n'
|
'Calls not found.\nExpected: %r\n'
|
||||||
'Actual: %r' % (calls, self.mock_calls)
|
'Actual: %r' % (_CallList(calls), self.mock_calls)
|
||||||
) from cause
|
) from cause
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue