commit | e966658bb362b3d70aad6e269abbf29a84ac5316 | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <senthil@uthcode.com> | Tue Jan 12 06:18:32 2016 -0800 |
committer | Robert Collins <rbtcollins@hp.com> | Wed Mar 23 18:59:31 2016 +1300 |
tree | 75460fa34651ee30d834b06bb78cc31bdac76c22 | |
parent | 4deb2c11bb98d0d1dfb472b17107879f4e506df5 [diff] |
Issue25347 - Format the error message output of mock's assert_has_calls method. Patch contributed by Robert Zimmerman.
diff --git a/mock/mock.py b/mock/mock.py index 8174766..80e1994 100644 --- a/mock/mock.py +++ b/mock/mock.py
@@ -962,7 +962,7 @@ if expected not in all_calls: six.raise_from(AssertionError( 'Calls not found.\nExpected: %r\n' - 'Actual: %r' % (calls, self.mock_calls) + 'Actual: %r' % (_CallList(calls), self.mock_calls) ), cause) return