Skip to content

Commit 9b21324

Browse files
committed
Removed mock module code.
1 parent 25bddec commit 9b21324

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

doc/conf.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import sphinx
1717

18-
from mock import Mock as MagicMock
18+
#from mock import Mock as MagicMock
1919

2020
#class Mock(object):
2121
# def __init__(self, *args, **kwargs):
@@ -33,19 +33,19 @@
3333
# else:
3434
# return Mock()
3535

36-
class Mock(MagicMock):
37-
@classmethod
38-
def __getattr__(cls, name):
39-
return Mock()
36+
# class Mock(MagicMock):
37+
# @classmethod
38+
# def __getattr__(cls, name):
39+
# return Mock()
4040

4141

42-
MOCK_MODULES = ['numpy', 'numpy.fft', 'scipy', 'matplotlib', 'matplotlib.pyplot',
43-
'matplotlib.collections', 'matplotlib.patches',
44-
'numpy.random']
45-
for mod_name in MOCK_MODULES:
46-
#sys.modules[mod_name] = Mock()
47-
#sys.modules[mod_name] = mock.Mock()
48-
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
42+
# MOCK_MODULES = ['numpy', 'numpy.fft', 'scipy', 'matplotlib', 'matplotlib.pyplot',
43+
# 'matplotlib.collections', 'matplotlib.patches',
44+
# 'numpy.random']
45+
# for mod_name in MOCK_MODULES:
46+
# #sys.modules[mod_name] = Mock()
47+
# #sys.modules[mod_name] = mock.Mock()
48+
# sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
4949

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

0 commit comments

Comments
 (0)