def test_continuous_error():
 y = np.linspace(0, 1, 20)
 cnn = CondensedNearestNeighbour(random_state=RND_SEED)
 assert_warns(UserWarning, cnn.fit, X, y)

def test_continuous_error ( ) : y = np . linspace ( 0 , 1 , 20 ) cnn = CondensedNearestNeighbour ( random_state = RND_SEED ) assert_warns ( UserWarning , cnn . fit , X , y )
test either if an error is raised when the target are continuous type .