python: follow the default warning filters of Python (#2666)

* python: follow the default warning filters of Python

https://docs.python.org/3/library/warnings.html#default-warning-filters

* update tests

* update tests
This commit is contained in:
Tsukasa OMOTO
2017-09-27 16:03:01 +09:00
committed by Yuan (Terry) Tang
parent 178517524f
commit 8d15024ac7
2 changed files with 0 additions and 19 deletions

View File

@@ -13,8 +13,6 @@ from .training import train
from .compat import (SKLEARN_INSTALLED, XGBModelBase,
XGBClassifierBase, XGBRegressorBase, XGBLabelEncoder)
warnings.simplefilter('always', DeprecationWarning)
def _objective_decorator(func):
"""Decorate an objective function