mirror of
https://github.com/python/cpython.git
synced 2025-10-05 06:31:48 +00:00
Fix unittest.mock._Call: don't ignore name (#307)
Issue #28961: Fix unittest.mock._Call helper: don't ignore the name parameter anymore. Patch written by Jiajun Huang. (cherry picked from commits84b6fb0eea
anddea1536fd3
) Conflicts: Misc/NEWS
This commit is contained in:
parent
4c784632f7
commit
6b585fddc9
3 changed files with 9 additions and 2 deletions
|
@ -1945,9 +1945,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue