[New-bugs-announce] [issue45305] Incorrect record of call_args_list when using multiple side_effect in mock.patch
report at bugs.python.org
Mon Sep 27 17:28:08 EDT 2021
New submission from Dave McNulla <mcnulla at gmail.com>:
I'm trying to reproduce an error in a call to a method, forcing a second call to the method. In my test, the call_args_list is showing incorrectly (both in debugging or running unittest normally).
I am not certain what other circumstances this is happening or not happening. I was able to reduce the code to reproduce it quite a bit. I am certain that the first call to the method is not matching correctly in my criteria to what I expect based on my debugging.
I am using python 3.7. I can reproduce in IntelliJ or by commandline `python3 -m pytest test_multiple_side_effect.py`
title: Incorrect record of call_args_list when using multiple side_effect in mock.patch
versions: Python 3.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce