Skip to content

Commit cc55dd8

Browse files
committed
Update test_smote.py
1 parent e660386 commit cc55dd8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

imblearn/over_sampling/_smote/tests/test_smote.py

-13
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from sklearn.utils._testing import assert_allclose, assert_array_equal
99

1010
from imblearn.over_sampling import SMOTE
11-
import pytest
1211

1312
RND_SEED = 0
1413
X = np.array(
@@ -231,15 +230,3 @@ def test_sample_indices_is_none():
231230
indices = smote.get_sample_indices()
232231
assert_array_equal(indices, None)
233232

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-
)

0 commit comments

Comments
 (0)