def dec(*args, **kwargs): if not check_sklearn_version(min_version='0.12'): from nose.plugins.skip import SkipTest raise SkipTest('Test %s skipped, requires scikit-learn >= 0.12' % function.__name__) ret = function(*args, **kwargs) return ret
def dec(*args, **kwargs): if not check_sklearn_version(min_version='0.12'): from nose.plugins.skip import SkipTest raise SkipTest('Test %s skipped, requires scikit-learn >= 0.12' % function.__name__) ret = function(*args, **kwargs) return ret