mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-03 16:52:39 +02:00
[testing] testing the error messages for plotting
This commit is contained in:
parent
3c618c1525
commit
b3bc34fd7d
2 changed files with 3 additions and 2 deletions
|
|
@ -31,8 +31,7 @@ def change_plotting_library(lib):
|
|||
import warnings
|
||||
warnings.warn(ImportWarning("You spevified {} in your configuration, but is not available. Install newest version of {} for plotting".format(lib, lib)))
|
||||
|
||||
from ConfigParser import NoOptionError
|
||||
from ..util.config import config
|
||||
from ..util.config import config, NoOptionError
|
||||
try:
|
||||
lib = config.get('plotting', 'library')
|
||||
change_plotting_library(lib)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue