File tree 1 file changed +0
-13
lines changed
imblearn/over_sampling/_smote/tests
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 8
8
from sklearn .utils ._testing import assert_allclose , assert_array_equal
9
9
10
10
from imblearn .over_sampling import SMOTE
11
- import pytest
12
11
13
12
RND_SEED = 0
14
13
X = np .array (
@@ -231,15 +230,3 @@ def test_sample_indices_is_none():
231
230
indices = smote .get_sample_indices ()
232
231
assert_array_equal (indices , None )
233
232
234
-
235
- def test_smote_FutureWarning ():
236
- smote = SMOTE (random_state = RND_SEED , n_jobs = 1 )
237
- with pytest .warns (FutureWarning ) as record :
238
- smote .fit_resample (XX , YY )
239
- assert len (record ) == 1
240
- assert (
241
- record [0 ].message .args [0 ]
242
- == "The parameter `n_jobs` has been deprecated in 0.10"
243
- " and will be removed in 0.12. You can pass an nearest"
244
- " neighbors estimator where `n_jobs` is already set instead."
245
- )
You can’t perform that action at this time.
0 commit comments