mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-26 13:26:22 +02:00
Adding extra mock... hopefully this won't carry on
This commit is contained in:
parent
d4a20232c0
commit
3c8b0a030f
1 changed files with 3 additions and 2 deletions
|
|
@ -26,6 +26,8 @@ class Mock(object):
|
|||
pass
|
||||
class Normalize(object):
|
||||
pass
|
||||
class LinearSegmentedColormap(object):
|
||||
pass
|
||||
def __init__(self, *args):
|
||||
"""Mock init
|
||||
"""
|
||||
|
|
@ -44,8 +46,7 @@ try:
|
|||
import GPy
|
||||
except exceptions.ImportError:
|
||||
MOCK_MODULES = ['matplotlib', 'pylab', 'matplotlib.colors',
|
||||
'matplotlib.cbook', 'pyfits',
|
||||
'numpy']
|
||||
'matplotlib.cbook', 'pyfits', 'numpy']
|
||||
|
||||
for mod_name in MOCK_MODULES:
|
||||
sys.modules[mod_name] = Mock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue