From 9e0795afc477a07d42dd91d7a6ce0303e3a3c9bd Mon Sep 17 00:00:00 2001 From: Alan Saul Date: Wed, 7 Aug 2013 16:28:16 +0100 Subject: [PATCH] Mocking matplotlib pyplot as readthedocs is failing to import it (again...) --- doc/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 4c377cb6..b6dad7fd 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -103,9 +103,10 @@ class Mock(object): #import mock print "Mocking" -MOCK_MODULES = ['sympy', - 'sympy.utilities', 'sympy.utilities.codegen', 'sympy.core.cache', - 'sympy.core', 'sympy.parsing', 'sympy.parsing.sympy_parser', +MOCK_MODULES = ['sympy', + 'sympy.utilities', 'sympy.utilities.codegen', 'sympy.core.cache', + 'sympy.core', 'sympy.parsing', 'sympy.parsing.sympy_parser', + 'matplotlib.pyplot' ] for mod_name in MOCK_MODULES: sys.modules[mod_name] = Mock()