This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients ezio.melotti, michael.foord, orsenthil, python-dev, rzimmerman
Date 2016-01-12.14:20:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452608404.94.0.98562679151.issue25347@psf.upfronthosting.co.za>
In-reply-to
Content
Verified the change and committed.

The new output behavior will be like this.

```
>>> from unittest.mock import Mock
>>> mock = Mock(return_value=None)
>>> for i in range(1, 10):
...     mock(i)
...
>>> from unittest.mock import call
>>> calls = [call(i) for i in range(2, 10)]
>>> mock.assert_has_calls(calls)
>>> calls.append(call(100))
>>> mock.assert_has_calls(calls)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/senthilkumaran/python/cpython/Lib/unittest/mock.py", line 824, in assert_has_calls
    ) from cause
AssertionError: Calls not found.
Expected: [call(2),
 call(3),
 call(4),
 call(5),
 call(6),
 call(7),
 call(8),
 call(9),
 call(100)]
Actual: [call(1),
 call(2),
 call(3),
 call(4),
 call(5),
 call(6),
 call(7),
 call(8),
 call(9)]
```
History
Date User Action Args
2016-01-12 14:20:05orsenthilsetrecipients: + orsenthil, ezio.melotti, michael.foord, python-dev, rzimmerman
2016-01-12 14:20:04orsenthilsetmessageid: <1452608404.94.0.98562679151.issue25347@psf.upfronthosting.co.za>
2016-01-12 14:20:04orsenthillinkissue25347 messages
2016-01-12 14:20:04orsenthilcreate