2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 19:04:02 +08:00

Fix Mock usage in sphinx configuration.

This commit is contained in:
whitequark 2015-07-26 09:49:39 +03:00
parent 95f7be0a88
commit 163edc02c6

View File

@ -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"]