mirror of
https://github.com/python/cpython.git
synced 2025-12-08 02:08:20 +00:00
bpo-37555: Ensure _call_matcher returns _Call object
This commit is contained in:
parent
874fb697b8
commit
d72d6f50f5
1 changed files with 1 additions and 1 deletions
|
|
@ -820,7 +820,7 @@ class NonCallableMock(Base):
|
|||
else:
|
||||
name, args, kwargs = _call
|
||||
try:
|
||||
return name, sig.bind(*args, **kwargs)
|
||||
return call(name, sig.bind(*args, **kwargs))
|
||||
except TypeError as e:
|
||||
return e.with_traceback(None)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue