[issue24857] mock: Crash on comparing call_args with long strings

Wilfred Hughes report at bugs.python.org
Thu Aug 13 11:15:44 CEST 2015


Wilfred Hughes added the comment:

This bug is particularly subtle because it only applies to *long* strings.

>>> m.call_args == "f"
False
>>> m.call_args == "fo"
False
>>> m.call_args == "foo"
False
>>> m.call_args == "foob"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/mock.py", line 2061, in __eq__
ValueError: too many values to unpack

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24857>
_______________________________________


More information about the Python-bugs-list mailing list