Changes to fix autodoc - need to test with ReadTheDocs still

This commit is contained in:
James McMurray 2013-09-18 15:43:23 +01:00
parent 2e65b21e23
commit 6897cf34b5
2 changed files with 3 additions and 3 deletions

View file

@ -83,6 +83,7 @@ print "finished importing"
#############################################################################
class Mock(object):
__all__ = []
def __init__(self, *args, **kwargs):
pass
@ -105,8 +106,7 @@ class Mock(object):
print "Mocking"
MOCK_MODULES = ['sympy',
'sympy.utilities', 'sympy.utilities.codegen', 'sympy.core.cache',
'sympy.core', 'sympy.parsing', 'sympy.parsing.sympy_parser',
'matplotlib.pyplot'
'sympy.core', 'sympy.parsing', 'sympy.parsing.sympy_parser'
]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()