Catch all skip_handler cases (GH-21842)
This commit is contained in:
parent
369a1cbdee
commit
6e0b788881
|
@ -185,7 +185,7 @@ def p_as_triple(dec):
|
||||||
coeff = int(s) if s else 0
|
coeff = int(s) if s else 0
|
||||||
|
|
||||||
if coeff < 0 or coeff >= 2**128:
|
if coeff < 0 or coeff >= 2**128:
|
||||||
raise ValueError("value out of bounds for a uint128 triple");
|
raise ValueError("value out of bounds for a uint128 triple")
|
||||||
|
|
||||||
return (sign, coeff, exp)
|
return (sign, coeff, exp)
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ def p_from_triple(triple):
|
||||||
sign, coeff, exp = triple
|
sign, coeff, exp = triple
|
||||||
|
|
||||||
if coeff < 0 or coeff >= 2**128:
|
if coeff < 0 or coeff >= 2**128:
|
||||||
raise ValueError("value out of bounds for a uint128 triple");
|
raise ValueError("value out of bounds for a uint128 triple")
|
||||||
|
|
||||||
digits = tuple(int(c) for c in str(coeff))
|
digits = tuple(int(c) for c in str(coeff))
|
||||||
|
|
||||||
|
@ -894,7 +894,7 @@ def verify(t, stat):
|
||||||
t.presults.append(str(t.rp.real))
|
t.presults.append(str(t.rp.real))
|
||||||
|
|
||||||
ctriple = None
|
ctriple = None
|
||||||
if t.funcname not in ['__radd__', '__rmul__']: # see skip handler
|
if str(t.rc) == str(t.rp): # see skip handler
|
||||||
try:
|
try:
|
||||||
ctriple = c_as_triple(t.rc)
|
ctriple = c_as_triple(t.rc)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
Loading…
Reference in New Issue