@@ -67,7 +67,7 @@ def data_for_grouping():
67
67
68
68
class TestDecimalArray (base .ExtensionTests ):
69
69
def _get_expected_exception (
70
- self , op_name : str , obj , other
70
+ self , op_name : str , obj , other , request
71
71
) -> type [Exception ] | None :
72
72
return None
73
73
@@ -108,7 +108,7 @@ def test_compare_array(self, data, comparison_op):
108
108
other = pd .Series (data ) * [decimal .Decimal (pow (2.0 , i )) for i in alter ]
109
109
self ._compare_other (ser , data , comparison_op , other )
110
110
111
- def test_arith_series_with_array (self , data , all_arithmetic_operators ):
111
+ def test_arith_series_with_array (self , data , all_arithmetic_operators , request ):
112
112
op_name = all_arithmetic_operators
113
113
ser = pd .Series (data )
114
114
@@ -120,13 +120,13 @@ def test_arith_series_with_array(self, data, all_arithmetic_operators):
120
120
121
121
# Decimal supports ops with int, but not float
122
122
other = pd .Series ([int (d * 100 ) for d in data ])
123
- self .check_opname (ser , op_name , other )
123
+ self .check_opname (ser , op_name , other , request )
124
124
125
125
if "mod" not in op_name :
126
- self .check_opname (ser , op_name , ser * 2 )
126
+ self .check_opname (ser , op_name , ser * 2 , request )
127
127
128
- self .check_opname (ser , op_name , 0 )
129
- self .check_opname (ser , op_name , 5 )
128
+ self .check_opname (ser , op_name , 0 , request )
129
+ self .check_opname (ser , op_name , 5 , request )
130
130
context .traps [decimal .DivisionByZero ] = divbyzerotrap
131
131
context .traps [decimal .InvalidOperation ] = invalidoptrap
132
132
0 commit comments