Merge pull request #27474 from whiteinge/docs-pymongo-fix

Add fake pymongo version attribute for the docs
This commit is contained in:
Nicole Thomas 2015-09-28 15:49:25 -06:00
commit 2f71833260

View File

@ -123,8 +123,9 @@ MOCK_MODULES = [
for mod_name in MOCK_MODULES: for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock() sys.modules[mod_name] = Mock()
# Define a fake version attribute for libcloud so docs build as supposed # Define a fake version attribute for the following libs.
sys.modules['libcloud'].__version__ = '0.0.0' sys.modules['libcloud'].__version__ = '0.0.0'
sys.modules['pymongo'].version = '0.0.0'
# -- Add paths to PYTHONPATH --------------------------------------------------- # -- Add paths to PYTHONPATH ---------------------------------------------------