diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-01-06 18:15:51 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-01-06 18:15:51 +0100 |
commit | 84b6fb0eea29b3b28a1a11124526b01ec0c9d17a (patch) | |
tree | 36adf93741ffd1325d0b9a3c9bd7631efbf082ab /Lib/unittest/mock.py | |
parent | 9505b03bb0d3c5828115fec9306cb976c43f04d9 (diff) | |
download | cpython-git-84b6fb0eea29b3b28a1a11124526b01ec0c9d17a.tar.gz |
Fix unittest.mock._Call: don't ignore name
Issue #28961: Fix unittest.mock._Call helper: don't ignore the name parameter
anymore.
Patch written by Jiajun Huang.
Diffstat (limited to 'Lib/unittest/mock.py')
-rw-r--r-- | Lib/unittest/mock.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index f134919888..dcac5a2925 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -1961,9 +1961,8 @@ class _Call(tuple): If the _Call has no name then it will match any name. """ - def __new__(cls, value=(), name=None, parent=None, two=False, + def __new__(cls, value=(), name='', parent=None, two=False, from_kall=True): - name = '' args = () kwargs = {} _len = len(value) |