From fd6df63f0775ba869f0dff839d5ff0713cdb89dc Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Fri, 2 Dec 2016 15:01:38 +0100 Subject: temporary readdthedoc correction --- docs/source/conf.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/source/conf.py b/docs/source/conf.py index 51164b5..dddc4fe 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -18,7 +18,7 @@ import re import sphinx_gallery #try: -# from unittest.mock import MagicMock +from unittest.mock import MagicMock #except ImportError: # from mock import MagicMock @@ -27,13 +27,13 @@ sys.path.insert(0, os.path.abspath("../..")) -# class Mock(MagicMock): -# @classmethod -# def __getattr__(cls, name): -# return Mock() +class Mock(MagicMock): + @classmethod + def __getattr__(cls, name): + return Mock() -# MOCK_MODULES = [ 'emd','ot.lp.emd'] -# sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) +MOCK_MODULES = [ 'emd','ot.lp.emd'] +sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the -- cgit v1.2.3