Skip to content

Commit fd6df63

Browse files
committed
temporary readdthedoc correction
1 parent 4e723cb commit fd6df63

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/source/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import sphinx_gallery
1919

2020
#try:
21-
# from unittest.mock import MagicMock
21+
from unittest.mock import MagicMock
2222
#except ImportError:
2323
# from mock import MagicMock
2424

@@ -27,13 +27,13 @@
2727

2828

2929

30-
# class Mock(MagicMock):
31-
# @classmethod
32-
# def __getattr__(cls, name):
33-
# return Mock()
30+
class Mock(MagicMock):
31+
@classmethod
32+
def __getattr__(cls, name):
33+
return Mock()
3434

35-
# MOCK_MODULES = [ 'emd','ot.lp.emd']
36-
# sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
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)