mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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:
|
||||
raise AssertionError(
|
||||
'Calls not found.\nExpected: %r\n'
|
||||
'Actual: %r' % (calls, self.mock_calls)
|
||||
'Actual: %r' % (_CallList(calls), self.mock_calls)
|
||||
) from cause
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue