summaryrefslogtreecommitdiff
path: root/mox.py
diff options
context:
space:
mode:
Diffstat (limited to 'mox.py')
-rwxr-xr-xmox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mox.py b/mox.py
index a4a4fb5..d6be02a 100755
--- a/mox.py
+++ b/mox.py
@@ -898,7 +898,7 @@ class MethodSignatureChecker(object):
# correct, this will cause extra executions of the function.
if inspect.ismethod(self._method):
# The extra param accounts for the bound instance.
- if len(params) == len(self._args) + 1:
+ if len(params) == len(self._required_args) + 1:
expected = getattr(self._method, 'im_class', None)
# Check if the param is an instance of the expected class,