]> git.notmuchmail.org Git - notmuch/commitdiff
python: mock out the ctypes library
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Fri, 10 Feb 2012 17:53:04 +0000 (18:53 +0100)
committerJustus Winter <4winter@informatik.uni-hamburg.de>
Fri, 10 Feb 2012 17:55:33 +0000 (18:55 +0100)
This allows rtfd.org to build the documentation without libnotmuch.

Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
bindings/python/docs/source/conf.py

index c7b951859b84116daffac2888422a52488c32716..76610b7d23d222626a9267b806c2a18faaaa8603 100644 (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()