Skip to content

Commit

Permalink
cache in test_plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Oct 29, 2020
1 parent 4c2e7be commit dfb0fd3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/python_package_test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from sklearn.datasets import dump_svmlight_file, load_svmlight_file
from sklearn.model_selection import train_test_split

from .utils import load_breast_cancer, lru_cache
from .utils import load_breast_cancer


class TestBasic(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/python_package_test/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
except ImportError:
import pickle

from .utils import load_boston, load_breast_cancer, load_digits, load_iris, lru_cache
from .utils import load_boston, load_breast_cancer, load_digits, load_iris


decreasing_generator = itertools.count(0, -1)
Expand Down
3 changes: 2 additions & 1 deletion tests/python_package_test/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import lightgbm as lgb
from lightgbm.compat import MATPLOTLIB_INSTALLED, GRAPHVIZ_INSTALLED
from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split

if MATPLOTLIB_INSTALLED:
Expand All @@ -12,6 +11,8 @@
if GRAPHVIZ_INSTALLED:
import graphviz

from .utils import load_breast_cancer


class TestBasic(unittest.TestCase):

Expand Down
2 changes: 1 addition & 1 deletion tests/python_package_test/test_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
check_parameters_default_constructible)
from sklearn.utils.validation import check_is_fitted

from .utils import load_boston, load_breast_cancer, load_digits, load_iris, load_linnerud, lru_cache
from .utils import load_boston, load_breast_cancer, load_digits, load_iris, load_linnerud


decreasing_generator = itertools.count(0, -1)
Expand Down

0 comments on commit dfb0fd3

Please sign in to comment.