mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-26 13:26:22 +02:00
fix: rtd
This commit is contained in:
parent
9f1cbb6e6f
commit
26a69e559a
1 changed files with 5 additions and 4 deletions
|
|
@ -27,19 +27,20 @@ sys.path.insert(0, os.path.abspath('../../GPy/'))
|
|||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||
|
||||
import sys
|
||||
from unittest.mock import MagicMockclass Mock(MagicMock):
|
||||
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
class Mock(MagicMock):
|
||||
@classmethod
|
||||
def __getattr__(cls, name):
|
||||
return MagicMock()
|
||||
return MagicMock()
|
||||
|
||||
MOCK_MODULES = [
|
||||
"GPy.util.linalg.linalg_cython",
|
||||
"GPy.util.linalg_cython",
|
||||
"sympy",
|
||||
'GPy.kern.stationary_cython'
|
||||
'GPy.kern.stationary_cython',
|
||||
]
|
||||
|
||||
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
|
||||
|
||||
#on_rtd = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue