summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmox.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mox.py b/mox.py
index 0a15047..cc2bae1 100755
--- a/mox.py
+++ b/mox.py
@@ -1117,6 +1117,9 @@ class MockMethod(object):
if self._description:
full_desc = "%s.%s" % (self._description, full_desc)
return full_desc
+
+ def __hash__(self):
+ return id(self)
def __eq__(self, rhs):
"""Test whether this MockMethod is equivalent to another MockMethod.