@@ -25,7 +25,7 @@ def test_variable_numerical_reduce(self, op, data):
2525 # compute using xp.<OP>(array)
2626 expected = getattr (self .xp , op )(variable .data )
2727
28- assert isinstance (actual , self .array_type ), f"wrong type: { type (actual )} "
28+ assert isinstance (actual , self .array_type ( op ) ), f"wrong type: { type (actual )} "
2929 self .assert_equal (actual , expected )
3030
3131 @pytest .mark .parametrize ("op" , ["all" , "any" ])
@@ -39,7 +39,7 @@ def test_variable_boolean_reduce(self, op, data):
3939 # compute using xp.<OP>(array)
4040 expected = getattr (self .xp , op )(variable .data )
4141
42- assert isinstance (actual , self .array_type ), f"wrong type: { type (actual )} "
42+ assert isinstance (actual , self .array_type ( op ) ), f"wrong type: { type (actual )} "
4343 self .assert_equal (actual , expected )
4444
4545 @pytest .mark .parametrize ("op" , ["max" , "min" ])
@@ -53,7 +53,7 @@ def test_variable_order_reduce(self, op, data):
5353 # compute using xp.<OP>(array)
5454 expected = getattr (self .xp , op )(variable .data )
5555
56- assert isinstance (actual , self .array_type ), f"wrong type: { type (actual )} "
56+ assert isinstance (actual , self .array_type ( op ) ), f"wrong type: { type (actual )} "
5757 self .assert_equal (actual , expected )
5858
5959 @pytest .mark .parametrize ("op" , ["argmax" , "argmin" ])
@@ -96,5 +96,5 @@ def test_variable_cumulative_reduce(self, op, data):
9696 for axis in range (variable .ndim ):
9797 expected = getattr (self .xp , array_api_names [op ])(expected , axis = axis )
9898
99- assert isinstance (actual , self .array_type ), f"wrong type: { type (actual )} "
99+ assert isinstance (actual , self .array_type ( op ) ), f"wrong type: { type (actual )} "
100100 self .assert_equal (actual , expected )
0 commit comments