Message258104
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)]
``` |
|
Date |
User |
Action |
Args |
2016-01-12 14:20:05 | orsenthil | set | recipients:
+ orsenthil, ezio.melotti, michael.foord, python-dev, rzimmerman |
2016-01-12 14:20:04 | orsenthil | set | messageid: <1452608404.94.0.98562679151.issue25347@psf.upfronthosting.co.za> |
2016-01-12 14:20:04 | orsenthil | link | issue25347 messages |
2016-01-12 14:20:04 | orsenthil | create | |
|