mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 10:54:52 +01:00
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:
parent
8c5be7d12d
commit
ae376c774e
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue