diff --git a/docs/faq.rst b/docs/faq.rst index 748001578bb..d4169d666c4 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -57,7 +57,7 @@ You can mock out the imports for these modules in your ``conf.py`` with the foll class Mock(MagicMock): @classmethod def __getattr__(cls, name): - return Mock() + return MagicMock() MOCK_MODULES = ['pygtk', 'gtk', 'gobject', 'argparse', 'numpy', 'pandas'] sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)