Mock augeas and M2Crypto in docs (fixes #262).

This commit is contained in:
Jakub Warmuz
2015-02-24 16:51:42 +00:00
parent 00af984bac
commit 31f444e4ba
+7
View File
@@ -17,6 +17,13 @@ import os
import re import re
import sys import sys
import mock
# http://docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
sys.modules.update(
(mod_name, mock.MagicMock()) for mod_name in ['augeas', 'M2Crypto'])
here = os.path.abspath(os.path.dirname(__file__)) here = os.path.abspath(os.path.dirname(__file__))
# read version number (and other metadata) from package init # read version number (and other metadata) from package init