File tree 1 file changed +0
-10
lines changed
imblearn/over_sampling/_smote/tests
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -60,22 +60,12 @@ def test_smoten_FutureWarning(data):
60
60
sampler = SMOTEN (random_state = 0 , n_jobs = 0 )
61
61
with pytest .warns (FutureWarning ) as record :
62
62
sampler .fit_resample (X , y )
63
- assert len (record ) == 2
64
63
assert (
65
64
record [0 ].message .args [0 ]
66
65
== "The parameter `n_jobs` has been deprecated in 0.10"
67
66
" and will be removed in 0.12. You can pass an nearest"
68
67
" neighbors estimator where `n_jobs` is already set instead."
69
68
)
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
- )
79
69
80
70
81
71
@pytest .fixture
You can’t perform that action at this time.
0 commit comments