Refactor Python tests. (#3897)

* Deprecate nose tests.
* Format python tests.
This commit is contained in:
Jiaming Yuan
2018-11-15 13:56:33 +13:00
committed by GitHub
parent c76d993681
commit 2ea0f887c1
23 changed files with 302 additions and 225 deletions

View File

@@ -2,7 +2,9 @@
import numpy as np
import xgboost as xgb
import testing as tm
import unittest
import pytest
try:
import matplotlib
@@ -13,7 +15,7 @@ except ImportError:
pass
tm._skip_if_no_matplotlib()
pytestmark = pytest.mark.skipif(**tm.no_matplotlib())
dpath = 'demo/data/'