diff options
author | Stefan Krah <skrah@bytereef.org> | 2020-08-12 14:00:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-12 14:00:05 (GMT) |
commit | 6e0b7888815e74c67b1fc3c5f60dd4a1aeae127a (patch) | |
tree | 4e469d2c8561f24034ed7eaf17f5809fde08b1cc /Modules/_decimal/tests | |
parent | 369a1cbdee14d9f27356fb3a8bb21e4fde289d25 (diff) | |
download | cpython-6e0b7888815e74c67b1fc3c5f60dd4a1aeae127a.zip cpython-6e0b7888815e74c67b1fc3c5f60dd4a1aeae127a.tar.gz cpython-6e0b7888815e74c67b1fc3c5f60dd4a1aeae127a.tar.bz2 |
Catch all skip_handler cases (GH-21842)
Diffstat (limited to 'Modules/_decimal/tests')
-rw-r--r-- | Modules/_decimal/tests/deccheck.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_decimal/tests/deccheck.py b/Modules/_decimal/tests/deccheck.py index ca869f4..5de57d1 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: |