forked from M-Labs/artiq
1
0
Fork 0

Fix Mock usage in sphinx configuration.

This commit is contained in:
whitequark 2015-07-26 09:49:39 +03:00
parent 95f7be0a88
commit 163edc02c6
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,8 @@ from unittest.mock import MagicMock
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
if name == "_mock_methods":
return None
return Mock()