@@ -56,20 +56,14 @@ def test_with_db_predict(self):
5656 pred = rom .predict ([[1 ], [2 ], [3 ]])
5757 np .testing .assert_equal (pred , np .array ([1 , 5 , 3 ])[:,None ])
5858
59-
60-
6159 def test_wrong1 (self ):
6260 # wrong number of params
63- with warnings .catch_warnings ():
64- warnings .filterwarnings ("ignore" , category = np .VisibleDeprecationWarning )
65- with self .assertRaises (Exception ):
66- reg = RadiusNeighborsRegressor ()
67- reg .fit ([[1 , 2 ], [6 ,], [8 , 9 ]], [[1 , 0 ], [20 , 5 ], [8 , 6 ]])
61+ with self .assertRaises (Exception ):
62+ reg = RadiusNeighborsRegressor ()
63+ reg .fit ([[1 , 2 ], [6 ,], [8 , 9 ]], [[1 , 0 ], [20 , 5 ], [8 , 6 ]])
6864
6965 def test_wrong2 (self ):
7066 # wrong number of values
71- with warnings .catch_warnings ():
72- warnings .filterwarnings ("ignore" , category = np .VisibleDeprecationWarning )
73- with self .assertRaises (Exception ):
74- reg = RadiusNeighborsRegressor ()
75- reg .fit ([[1 , 2 ], [6 ,], [8 , 9 ]], [[20 , 5 ], [8 , 6 ]])
67+ with self .assertRaises (Exception ):
68+ reg = RadiusNeighborsRegressor ()
69+ reg .fit ([[1 , 2 ], [6 ,], [8 , 9 ]], [[20 , 5 ], [8 , 6 ]])
0 commit comments