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
|
@ -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…
Reference in New Issue