Message416653
| Author | himkt |
|---|---|
| Recipients | docs@python, himkt |
| Date | 2022-04-04.05:58:03 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1649051883.59.0.539492131834.issue47209@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
> 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 ``` |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-04 05:58:03 | himkt | set | recipients: + himkt, docs@python |
| 2022-04-04 05:58:03 | himkt | set | messageid: <1649051883.59.0.539492131834.issue47209@roundup.psfhosted.org> |
| 2022-04-04 05:58:03 | himkt | link | issue47209 messages |
| 2022-04-04 05:58:03 | himkt | create | |