@@ -28,7 +28,7 @@ def test_cumulative_sum(x, data):
2828 if x .ndim == 1 :
2929 axes = axes | st .none ()
3030 axis = data .draw (axes , label = 'axis' )
31- _axis , = sh .normalise_axis (axis , x .ndim )
31+ _axis , = sh .normalize_axis (axis , x .ndim )
3232 dtype = data .draw (kwarg_dtypes (x .dtype ))
3333 include_initial = data .draw (st .booleans (), label = "include_initial" )
3434
@@ -108,7 +108,7 @@ def test_max(x, data):
108108 out = xp .max (x , ** kw )
109109
110110 ph .assert_dtype ("max" , in_dtype = x .dtype , out_dtype = out .dtype )
111- _axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
111+ _axes = sh .normalize_axis (kw .get ("axis" , None ), x .ndim )
112112 ph .assert_keepdimable_shape (
113113 "max" , in_shape = x .shape , out_shape = out .shape , axes = _axes , keepdims = keepdims , kw = kw
114114 )
@@ -138,7 +138,7 @@ def test_mean(x, data):
138138 out = xp .mean (x , ** kw )
139139
140140 ph .assert_dtype ("mean" , in_dtype = x .dtype , out_dtype = out .dtype )
141- _axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
141+ _axes = sh .normalize_axis (kw .get ("axis" , None ), x .ndim )
142142 ph .assert_keepdimable_shape (
143143 "mean" , in_shape = x .shape , out_shape = out .shape , axes = _axes , keepdims = keepdims , kw = kw
144144 )
@@ -161,7 +161,7 @@ def test_min(x, data):
161161 out = xp .min (x , ** kw )
162162
163163 ph .assert_dtype ("min" , in_dtype = x .dtype , out_dtype = out .dtype )
164- _axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
164+ _axes = sh .normalize_axis (kw .get ("axis" , None ), x .ndim )
165165 ph .assert_keepdimable_shape (
166166 "min" , in_shape = x .shape , out_shape = out .shape , axes = _axes , keepdims = keepdims , kw = kw
167167 )
@@ -209,7 +209,7 @@ def test_prod(x, data):
209209 assert dh .is_int_dtype (out .dtype ) # sanity check
210210 else :
211211 ph .assert_dtype ("prod" , in_dtype = x .dtype , out_dtype = out .dtype , expected = expected_dtype )
212- _axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
212+ _axes = sh .normalize_axis (kw .get ("axis" , None ), x .ndim )
213213 ph .assert_keepdimable_shape (
214214 "prod" , in_shape = x .shape , out_shape = out .shape , axes = _axes , keepdims = keepdims , kw = kw
215215 )
@@ -239,7 +239,7 @@ def test_prod(x, data):
239239)
240240def test_std (x , data ):
241241 axis = data .draw (hh .axes (x .ndim ), label = "axis" )
242- _axes = sh .normalise_axis (axis , x .ndim )
242+ _axes = sh .normalize_axis (axis , x .ndim )
243243 N = sum (side for axis , side in enumerate (x .shape ) if axis not in _axes )
244244 correction = data .draw (
245245 st .floats (0.0 , N , allow_infinity = False , allow_nan = False ) | st .integers (0 , N ),
@@ -298,7 +298,7 @@ def test_sum(x, data):
298298 assert dh .is_int_dtype (out .dtype ) # sanity check
299299 else :
300300 ph .assert_dtype ("sum" , in_dtype = x .dtype , out_dtype = out .dtype , expected = expected_dtype )
301- _axes = sh .normalise_axis (kw .get ("axis" , None ), x .ndim )
301+ _axes = sh .normalize_axis (kw .get ("axis" , None ), x .ndim )
302302 ph .assert_keepdimable_shape (
303303 "sum" , in_shape = x .shape , out_shape = out .shape , axes = _axes , keepdims = keepdims , kw = kw
304304 )
@@ -329,7 +329,7 @@ def test_sum(x, data):
329329)
330330def test_var (x , data ):
331331 axis = data .draw (hh .axes (x .ndim ), label = "axis" )
332- _axes = sh .normalise_axis (axis , x .ndim )
332+ _axes = sh .normalize_axis (axis , x .ndim )
333333 N = sum (side for axis , side in enumerate (x .shape ) if axis not in _axes )
334334 correction = data .draw (
335335 st .floats (0.0 , N , allow_infinity = False , allow_nan = False ) | st .integers (0 , N ),
0 commit comments