Skip to content

Commit

Permalink
Merge pull request #913 from Kaggle/add-xgboost-version-regression-test
Browse files Browse the repository at this point in the history
Add xgboost version regression test.
  • Loading branch information
rosbo authored Dec 8, 2020
2 parents cb38e56 + d60116a commit f1a3bb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_xgboost.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import unittest

import xgboost

from distutils.version import StrictVersion
from sklearn import datasets
from xgboost import XGBClassifier

class TestXGBoost(unittest.TestCase):
def test_version(self):
# b/175051617 prevent xgboost version downgrade.
self.assertGreaterEqual(StrictVersion(xgboost.__version__), StrictVersion("1.2.1"))

def test_classifier(self):
boston = datasets.load_boston()
X, y = boston.data, boston.target
Expand Down

0 comments on commit f1a3bb3

Please sign in to comment.