summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2011-12-24 10:00:58 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-12-24 10:27:02 +0000
commit96e66e0ab7d9439acae9efb88e9c97a8c176a6ef (patch)
tree59917b0d84016633a46bfd7edab05682123d35eb /docs
parent6e8834b094bde363cc9fa5621284bae87e558ddd (diff)
Add a fake __file__ string to the Mock class
On my system pkg_resources.py does some magic involving the __file__ field that fails if that is not a string.
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 3e142b1a..6bff362a 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -23,7 +23,7 @@ class Mock(object):
pass
def __getattr__(self, name):
- return Mock
+ return Mock if name != '__file__' else '/dev/null'
MOCK_MODULES = ['notmuch', 'notmuch.globals',
'twisted', 'twisted.internet',