bpo-37555: Ensure _call_matcher returns _Call object
This commit is contained in:
parent
874fb697b8
commit
d72d6f50f5
|
@ -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…
Reference in New Issue