python: mock out the ctypes library

This allows rtfd.org to build the documentation without libnotmuch.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
This commit is contained in:
Justus Winter 2012-02-10 18:53:04 +01:00
parent 8c5be7d12d
commit ae376c774e

View file

@ -30,6 +30,7 @@ class Mock(object):
return Mock() if name not in ('__file__', '__path__') else '/dev/null'
MOCK_MODULES = [
'ctypes',
]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()