@@ -1531,8 +1531,10 @@ def test_kind(self, xp: ModuleType, library: Backend):
15311531 res = isin (a , b , kind = "sort" )
15321532 xp_assert_equal (res , expected )
15331533
1534+
15341535METHOD = Literal ["linear" , "inverted_cdf" , "averaged_inverted_cdf" ]
15351536
1537+
15361538@pytest .mark .xfail_xp_backend (Backend .SPARSE , reason = "no xp.take" )
15371539class TestQuantile :
15381540 def test_basic (self , xp : ModuleType ):
@@ -1578,8 +1580,9 @@ def test_against_numpy_1d(self, xp: ModuleType, with_nans: str, method: METHOD):
15781580 @pytest .mark .parametrize ("with_nans" , ["no_nans" , "with_nans" ])
15791581 @pytest .mark .parametrize ("method" , get_args (METHOD ))
15801582 @pytest .mark .parametrize ("keepdims" , [True , False ])
1581- def test_against_numpy_nd (self , xp : ModuleType , keepdims : bool ,
1582- with_nans : str , method : METHOD ):
1583+ def test_against_numpy_nd (
1584+ self , xp : ModuleType , keepdims : bool , with_nans : str , method : METHOD
1585+ ):
15831586 rng = np .random .default_rng ()
15841587 a_np = rng .random ((3 , 4 , 5 ))
15851588 if with_nans == "with_nans" :
@@ -1598,7 +1601,10 @@ def test_against_numpy_nd(self, xp: ModuleType, keepdims: bool,
15981601 @pytest .mark .parametrize ("nan_policy" , ["no_nans" , "propagate" ])
15991602 @pytest .mark .parametrize ("with_weights" , ["with_weights" , "no_weights" ])
16001603 def test_against_median (
1601- self , xp : ModuleType , nan_policy : str , with_weights : str ,
1604+ self ,
1605+ xp : ModuleType ,
1606+ nan_policy : str ,
1607+ with_weights : str ,
16021608 ):
16031609 rng = np .random .default_rng ()
16041610 n = 40
0 commit comments