From 90bc7f8f6b5a007b86575356f5a6df4168af19e1 Mon Sep 17 00:00:00 2001 From: tqchen Date: Sat, 27 Feb 2016 18:15:32 -0800 Subject: [PATCH] [TEST] Fix travis test when reading hdfs --- tests/python/test_basic.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/python/test_basic.py b/tests/python/test_basic.py index 926fe57b2..d7a6e2619 100644 --- a/tests/python/test_basic.py +++ b/tests/python/test_basic.py @@ -183,11 +183,10 @@ class TestBasic(unittest.TestCase): assert dm.num_col() == 2 def test_load_file_invalid(self): - - self.assertRaises(xgb.XGBoostError, xgb.Booster, + self.assertRaises(xgb.core.XGBoostError, xgb.Booster, model_file='incorrect_path') - self.assertRaises(xgb.XGBoostError, xgb.Booster, + self.assertRaises(xgb.core.XGBoostError, xgb.Booster, model_file=u'不正なパス') def test_dmatrix_numpy_init(self):