bpo-37555: Ensure _call_matcher returns _Call object

This commit is contained in:
Elizabeth Uselton 2019-07-19 19:19:00 -07:00
parent 874fb697b8
commit d72d6f50f5
1 changed files with 1 additions and 1 deletions

View File

@ -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: