Kaydet (Commit) 121edbf7 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Issue25347 - Format the error message output of mock's assert_has_calls method.

Patch contributed by Robert Zimmerman.
üst 2b065587
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment