Skip to content

Commit ecac4ba

Browse files
committed
readthedoc
1 parent e458b7a commit ecac4ba

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/source/conf.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@
1717
import re
1818
import sphinx_gallery
1919

20-
##try:
21-
#from unittest.mock import MagicMock
22-
##except ImportError:
23-
## from mock import MagicMock
24-
#
25-
#sys.path.insert(0, os.path.abspath("../.."))
26-
##sys.setrecursionlimit(1500)
27-
#
28-
#
29-
#
30-
#class Mock(MagicMock):
31-
# @classmethod
32-
# def __getattr__(cls, name):
33-
# return Mock()
34-
#
35-
#MOCK_MODULES = [ 'emd','ot.lp.emd']
36-
#sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
20+
#try:
21+
from unittest.mock import MagicMock
22+
#except ImportError:
23+
# from mock import MagicMock
24+
25+
sys.path.insert(0, os.path.abspath("../.."))
26+
#sys.setrecursionlimit(1500)
27+
28+
29+
30+
class Mock(MagicMock):
31+
@classmethod
32+
def __getattr__(cls, name):
33+
return Mock()
34+
35+
MOCK_MODULES = [ 'emd','ot.lp.emd']
36+
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
3737

3838
# If extensions (or modules to document with autodoc) are in another directory,
3939
# add these directories to sys.path here. If the directory is relative to the

0 commit comments

Comments
 (0)