[issue25347] assert_has_calls output is formatted inconsistently

2016-01-03 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25347] assert_has_calls output is formatted inconsistently

2015-10-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25347] assert_has_calls output is formatted inconsistently

2015-10-08 Thread Robert Zimmerman

New submission from Robert Zimmerman:

For longer lists of calls, the "Expected" list is printed all on one line while 
the "Actual" list is pprinted and on multiple lines. This makes it hard to do a 
visual compare of which calls are missing/incorrect.

Example:

AssertionError: Calls not found.
Expected: [call(''), call(''), 
call(''), call(''), 
call(''), call(''), 
call('')]
Actual: [call('aaa'),
 call('aaa'),
 call('aaa'),
 call('aaa'),
 call('aaa'),
 call('aaa'),
 call('aaa')]


What I'd expect:

AssertionError: Calls not found.
Expected: [call(''),
 call(''),
 call(''),
 call(''),
 call(''),
 call(''),
 call('')]
Actual: [call('aaa'),
 call('aaa'),
 call('aaa'),
 call('aaa'),
 call('aaa'),
 call('aaa'),
 call('aaa')]

--
components: Tests
files: mock_assert_has_calls.patch
keywords: patch
messages: 252569
nosy: michael.foord, rzimmerman
priority: normal
severity: normal
status: open
title: assert_has_calls output is formatted inconsistently
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40723/mock_assert_has_calls.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com