#NEWLINE# def test_isotonic_regression_oob_bad( ) : #NEWLINE# #INDENT# y = np . array ( [ 3 , 7 , 5 , 9 , 8 , 7 , 10 ] ) #NEWLINE# x = np . arange ( len ( y ) ) #NEWLINE# ir = IsotonicRegression ( increasing = 'auto' , out_of_bounds = 'xyz' ) #NEWLINE# assert_raises ( ValueError , ir . fit , x , y )