Skip to content

Commit 4c72219

Browse files
committed
Test of code after PR#946 was merged
1 parent 29b053c commit 4c72219

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

imblearn/over_sampling/_smote/tests/test_smoten.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,12 @@ def test_smoten_FutureWarning(data):
6060
sampler = SMOTEN(random_state=0, n_jobs=0)
6161
with pytest.warns(FutureWarning) as record:
6262
sampler.fit_resample(X, y)
63-
assert len(record) == 2
6463
assert (
6564
record[0].message.args[0]
6665
== "The parameter `n_jobs` has been deprecated in 0.10"
6766
" and will be removed in 0.12. You can pass an nearest"
6867
" neighbors estimator where `n_jobs` is already set instead."
6968
)
70-
assert (
71-
record[1].message.args[0]
72-
== "Unlike other reduction functions (e.g. `skew`, `kurtosis`),"
73-
" the default behavior of `mode` typically preserves the axis it"
74-
" acts along. In SciPy 1.11.0, this behavior will change: the default"
75-
" value of `keepdims` will become False, the `axis` over which the "
76-
"statistic is taken will be eliminated, and the value None will no longer"
77-
" be accepted. Set `keepdims` to True or False to avoid this warning."
78-
)
7969

8070

8171
@pytest.fixture

0 commit comments

Comments
 (0)