Author akaptur
Recipients akaptur
Date 2015-09-04.05:08:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441343319.6.0.391788581363.issue24997@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-09-04 05:08:39akaptursetrecipients: + akaptur
2015-09-04 05:08:39akaptursetmessageid: <1441343319.6.0.391788581363.issue24997@psf.upfronthosting.co.za>
2015-09-04 05:08:39akapturlinkissue24997 messages
2015-09-04 05:08:39akapturcreate