4 Apr
2022
4 Apr
'22
12:58 a.m.
himkt <himkt@klis.tsukuba.ac.jp> added the comment:
It only need to wrap an argument when it is a singular value.
It is also wrong..., sorry. To compare a single value, I should have passed a tuple of tuples. ```
python demo.py 2022-04-04 14:56:41 mock_obj.call_args_list [call(1), call(2)] mock_obj.call_args_list == [(1,), (2,)] False mock_obj.call_args_list == [call(1,), call(2,)] True mock_obj.call_args_list == [((1,),), ((2,),)] True
----------
_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue47209>
_______________________________________