[Python-checkins] Catch all skip_handler cases (GH-21842)

Stefan Krah webhook-mailer at python.org
Wed Aug 12 10:00:16 EDT 2020


https://github.com/python/cpython/commit/6e0b7888815e74c67b1fc3c5f60dd4a1aeae127a
commit: 6e0b7888815e74c67b1fc3c5f60dd4a1aeae127a
branch: master
author: Stefan Krah <skrah at bytereef.org>
committer: GitHub <noreply at github.com>
date: 2020-08-12T16:00:05+02:00
summary:

Catch all skip_handler cases (GH-21842)

files:
M Modules/_decimal/tests/deccheck.py

diff --git a/Modules/_decimal/tests/deccheck.py b/Modules/_decimal/tests/deccheck.py
index ca869f4dbf5d8..5de57d1f875a2 100644
--- a/Modules/_decimal/tests/deccheck.py
+++ b/Modules/_decimal/tests/deccheck.py
@@ -185,7 +185,7 @@ def p_as_triple(dec):
     coeff = int(s) if s else 0
 
     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)
 
@@ -193,7 +193,7 @@ def p_from_triple(triple):
     sign, coeff, exp = triple
 
     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))
 
@@ -894,7 +894,7 @@ def verify(t, stat):
         t.presults.append(str(t.rp.real))
 
         ctriple = None
-        if t.funcname not in ['__radd__', '__rmul__']: # see skip handler
+        if str(t.rc) == str(t.rp): # see skip handler
             try:
                 ctriple = c_as_triple(t.rc)
             except ValueError:



More information about the Python-checkins mailing list