Skip to content

Commit 7a5f6ed

Browse files
committed
ut
1 parent 4dccea9 commit 7a5f6ed

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ matrix:
77
- python: 3.9
88
name: "Py39-024+"
99
env:
10-
- sklver=">=0.24.0"
10+
- sklver=">=0.24.2"
1111
- jlver=">=1.0"
1212
- python: 3.8
1313
name: "Py38-023"

_unittests/ut_mlmodel/test_categories_to_integers.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,11 @@ def test_categories_to_integers_grid_search(self):
119119
LogisticRegression())
120120
self.assertRaise(lambda: test_sklearn_grid_search_cv(
121121
lambda: pipe, df), ValueError)
122-
self.assertRaise(
123-
lambda: test_sklearn_grid_search_cv(
124-
lambda: pipe, X, y, categoriestointegers__single=[True, False]),
125-
ValueError, "Unable to find category value")
122+
if compare_module_version(sklver, "0.24") >= 0:
123+
self.assertRaise(
124+
lambda: test_sklearn_grid_search_cv(
125+
lambda: pipe, X, y, categoriestointegers__single=[True, False]),
126+
ValueError, "Unable to find category value")
126127
pipe = make_pipeline(CategoriesToIntegers(),
127128
Imputer(strategy='most_frequent'),
128129
LogisticRegression(n_jobs=1))

0 commit comments

Comments
 (0)