Author Wilfred.Hughes
Recipients Wilfred.Hughes
Date 2015-08-13.08:34:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439454881.01.0.0909899225137.issue24857@psf.upfronthosting.co.za>
In-reply-to
Content
What steps will reproduce the problem?

>>> from mock import Mock
>>> m = Mock()
>>> m(1, 2)
<Mock name='mock()' id='139781492681104'>
>>> m.call_args == "foob"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/wilfred/.py_envs/trifle/lib/python2.7/site-packages/mock.py", line 2061, in __eq__
    first, second = other
ValueError: too many values to unpack

What is the expected output? What do you see instead?

Expected False, got an error instead.

(Migrated from https://github.com/testing-cabal/mock/issues/232 )
History
Date User Action Args
2015-08-13 08:34:41Wilfred.Hughessetrecipients: + Wilfred.Hughes
2015-08-13 08:34:41Wilfred.Hughessetmessageid: <1439454881.01.0.0909899225137.issue24857@psf.upfronthosting.co.za>
2015-08-13 08:34:40Wilfred.Hugheslinkissue24857 messages
2015-08-13 08:34:40Wilfred.Hughescreate