mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 23:53:15 +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'
|
return Mock() if name not in ('__file__', '__path__') else '/dev/null'
|
||||||
|
|
||||||
MOCK_MODULES = [
|
MOCK_MODULES = [
|
||||||
|
'ctypes',
|
||||||
]
|
]
|
||||||
for mod_name in MOCK_MODULES:
|
for mod_name in MOCK_MODULES:
|
||||||
sys.modules[mod_name] = Mock()
|
sys.modules[mod_name] = Mock()
|
||||||
|
|
Loading…
Add table
Reference in a new issue