gh-91821: Make decimal test succeed consistently (#91825)

The test relies on precision being set to 9, but some ways of
invoking this test leave it set to 28 instead. I don't know
exactly how it happens, but setting the precision directly should
make the behavior consistent.
This commit is contained in:
Jelle Zijlstra 2022-04-24 15:02:57 -07:00 committed by GitHub
parent dd3cf124a0
commit e93d2fbdda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -5520,6 +5520,7 @@ class CWhitebox(unittest.TestCase):
with localcontext() as c:
c.prec = 9
c.traps[InvalidOperation] = True
c.traps[Overflow] = True
c.traps[Underflow] = True

View file

@ -0,0 +1 @@
Fix unstable ``test_from_tuple`` test in ``test_decimal.py``.