summaryrefslogtreecommitdiff
path: root/mox.py
diff options
context:
space:
mode:
Diffstat (limited to 'mox.py')
-rwxr-xr-xmox.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mox.py b/mox.py
index eb0717d..a916e6e 100755
--- a/mox.py
+++ b/mox.py
@@ -446,6 +446,8 @@ class MockAnything:
Returns:
A new MockMethod aware of MockAnything's state (record or replay).
"""
+ if method_name == '__dir__':
+ return self.__class__.__dir__.__get__(self, self.__class__)
return self._CreateMockMethod(method_name)