Skip to content

Commit 78d5153

Browse files
authored
Merge pull request #2530 from jkloetzke/patch-1
Fix infinite recursion in FAQ mocking example
2 parents 64cd0d9 + 0ae6160 commit 78d5153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ You can mock out the imports for these modules in your ``conf.py`` with the foll
5757
class Mock(MagicMock):
5858
@classmethod
5959
def __getattr__(cls, name):
60-
return Mock()
60+
return MagicMock()
6161

6262
MOCK_MODULES = ['pygtk', 'gtk', 'gobject', 'argparse', 'numpy', 'pandas']
6363
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

0 commit comments

Comments
 (0)