mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +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
|
pass
|
||||||
class Normalize(object):
|
class Normalize(object):
|
||||||
pass
|
pass
|
||||||
|
class LinearSegmentedColormap(object):
|
||||||
|
pass
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
"""Mock init
|
"""Mock init
|
||||||
"""
|
"""
|
||||||
|
|
@ -44,8 +46,7 @@ try:
|
||||||
import GPy
|
import GPy
|
||||||
except exceptions.ImportError:
|
except exceptions.ImportError:
|
||||||
MOCK_MODULES = ['matplotlib', 'pylab', 'matplotlib.colors',
|
MOCK_MODULES = ['matplotlib', 'pylab', 'matplotlib.colors',
|
||||||
'matplotlib.cbook', 'pyfits',
|
'matplotlib.cbook', 'pyfits', 'numpy']
|
||||||
'numpy']
|
|
||||||
|
|
||||||
for mod_name in MOCK_MODULES:
|
for mod_name in MOCK_MODULES:
|
||||||
sys.modules[mod_name] = Mock()
|
sys.modules[mod_name] = Mock()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue