Alex Etling added the comment:
I attempted to fix this by just deepcopying on creation of the _call object, on
line 927 of mock.py but this caused a lot of strange errors I did not expect.
If you could advise on how best to proceed to fix, I would greatly appreciate
it
New submission from Alex Etling:
Consider the following lines of code:
def test_mock(val):
fake_mock = Mock()
a = {}
fake_mock.func(a)
a['val'] = 5
fake_mock.func.assert_has_calls([call({})])
What i would expect would be for this statement to pass. What I actua