Message249715
mock.call_args can be both equal to and not equal to another object:
>>> m = Mock()
>>> m(1,2)
<Mock name='mock()' id='4483976016'>
>>> m.call_args
call(1, 2)
>>> m.call_args == call(1,2)
True
>>> m.call_args != call(1,2)
True
This appears to be a recent regression - it repros on trunk, but not on 3.3 or 2.7 with mock 1.3.0. |
|
Date |
User |
Action |
Args |
2015-09-04 05:08:39 | akaptur | set | recipients:
+ akaptur |
2015-09-04 05:08:39 | akaptur | set | messageid: <1441343319.6.0.391788581363.issue24997@psf.upfronthosting.co.za> |
2015-09-04 05:08:39 | akaptur | link | issue24997 messages |
2015-09-04 05:08:39 | akaptur | create | |
|