def test_senn_multiclass_error():
 y = np.linspace(0, 1, 20)
 sm = SMOTEENN(random_state=RND_SEED)
 assert_warns(UserWarning, sm.fit, X, y)
 y = np.array(((([0] * 3) + ([1] * 2)) + ([2] * 15)))
 sm = SMOTEENN(random_state=RND_SEED)
 assert_warns(UserWarning, sm.fit, X, y)

def test_senn_multiclass_error ( ) : y = np . linspace ( 0 , 1 , 20 ) sm = SMOTEENN ( random_state = RND_SEED ) assert_warns ( UserWarning , sm . fit , X , y ) y = np . array ( ( ( ( [ 0 ] * 3 ) + ( [ 1 ] * 2 ) ) + ( [ 2 ] * 15 ) ) ) sm = SMOTEENN ( random_state = RND_SEED ) assert_warns ( UserWarning , sm . fit , X , y )
test either if an error is raised when the target are not binary type .