From 163edc02c6373dbb0335b02366b843714a70f671 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 26 Jul 2015 09:49:39 +0300 Subject: [PATCH] Fix Mock usage in sphinx configuration. --- doc/manual/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/manual/conf.py b/doc/manual/conf.py index 2df182943..ffb4f02f8 100644 --- a/doc/manual/conf.py +++ b/doc/manual/conf.py @@ -22,7 +22,9 @@ from unittest.mock import MagicMock class Mock(MagicMock): @classmethod def __getattr__(cls, name): - return Mock() + if name == "_mock_methods": + return None + return Mock() mock_modules = ["artiq.gui.moninj", "quamash", "pyqtgraph", "matplotlib"]