[testing] testing the error messages for plotting

This commit is contained in:
mzwiessele 2015-11-30 11:00:36 +00:00
parent 3c618c1525
commit b3bc34fd7d
2 changed files with 3 additions and 2 deletions

View file

@ -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)