@@ -973,7 +973,7 @@ def test_python_scalar(self, xp: ModuleType):
973973 xp_assert_equal (isclose (0 , 1 , xp = xp ), xp .asarray (False ))
974974
975975 def test_all_python_scalars (self ):
976- with pytest .raises (TypeError , match = "Unrecognized " ):
976+ with pytest .raises (TypeError , match = r"array_namespace requires .* array input " ):
977977 _ = isclose (0 , 0 )
978978
979979 def test_xp (self , xp : ModuleType ):
@@ -1069,7 +1069,7 @@ def test_python_scalar(self, xp: ModuleType):
10691069 xp_assert_equal (kron (1 , 1 , xp = xp ), xp .asarray (1 ))
10701070
10711071 def test_all_python_scalars (self ):
1072- with pytest .raises (TypeError , match = "Unrecognized " ):
1072+ with pytest .raises (TypeError , match = r"array_namespace requires .* array input " ):
10731073 _ = kron (1 , 1 )
10741074
10751075 def test_device (self , xp : ModuleType , device : Device ):
@@ -1401,7 +1401,7 @@ def test_python_scalar(
14011401
14021402 @pytest .mark .parametrize ("assume_unique" , [True , False ])
14031403 def test_all_python_scalars (self , assume_unique : bool ):
1404- with pytest .raises (TypeError , match = "Unrecognized " ):
1404+ with pytest .raises (TypeError , match = r"array_namespace requires .* array input " ):
14051405 _ = setdiff1d (0 , 0 , assume_unique = assume_unique )
14061406
14071407 @assume_unique
0 commit comments