[issue24857] Crash on comparing call_args with long strings
Wilfred Hughes
report at bugs.python.org
Thu Aug 13 10:34:41 CEST 2015
New submission from Wilfred Hughes:
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 )
----------
components: Library (Lib)
messages: 248504
nosy: Wilfred.Hughes
priority: normal
severity: normal
status: open
title: Crash on comparing call_args with long strings
type: crash
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24857>
_______________________________________
More information about the Python-bugs-list
mailing list