diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 96f8f7f32c4548..f7a47c86a3fe88 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -5520,6 +5520,7 @@ def test_from_tuple(self): with localcontext() as c: + c.prec = 9 c.traps[InvalidOperation] = True c.traps[Overflow] = True c.traps[Underflow] = True diff --git a/Misc/NEWS.d/next/Library/2022-04-22-08-25-18.gh-issue-91821.XwMkj0.rst b/Misc/NEWS.d/next/Library/2022-04-22-08-25-18.gh-issue-91821.XwMkj0.rst new file mode 100644 index 00000000000000..9d7f9d48c4c996 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-04-22-08-25-18.gh-issue-91821.XwMkj0.rst @@ -0,0 +1 @@ +Fix unstable ``test_from_tuple`` test in ``test_decimal.py``.