Skip to content

Commit 6e9fc78

Browse files
committed
Avoid shadowing variable
1 parent 85418d5 commit 6e9fc78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

quaddtype/tests/test_quaddtype.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ def test_unary_ops(op, val):
128128
quad_val = QuadPrecision(val)
129129
float_val = float(val)
130130

131-
for op_func in [op_func, nop_func]:
132-
if op_func is None:
131+
for of in [op_func, nop_func]:
132+
if of is None:
133133
continue
134134

135-
quad_result = op_func(quad_val)
136-
float_result = op_func(float_val)
135+
quad_result = of(quad_val)
136+
float_result = of(float_val)
137137

138138
# FIXME: @juntyr: replace with array_equal once isnan is supported
139139
with np.errstate(invalid="ignore"):

0 commit comments

Comments
 (0)