Issue #8567: Fix incorrect precedence of signals in Decimal module.
When a Decimal operation raises multiple signals and more than one of
those signals is trapped, the specification determines the order in
which the signals should be handled. In many cases this order wasn't
being followed, leading to the wrong Python exception being raised.
This commit fixes those cases, and adds extra tests. The tests are
only enabled when EXTENDEDERRORTESTS is True, since they involve
rerunning each Decimal testcase several times.
diff --git a/Misc/NEWS b/Misc/NEWS
index 5c16eac..ca94ce8 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -33,6 +33,12 @@
Library
-------
+- Issue #8567: Fix precedence of signals in Decimal module: when a
+ Decimal operation raises multiple signals and more than one of those
+ signals is trapped, the specification determines the order in which
+ the signals should be handled. In many cases this order wasn't
+ being followed, leading to the wrong Python exception being raised.
+
- Issue #7865: The close() method of :mod:`io` objects should not swallow
exceptions raised by the implicit flush(). Also ensure that calling
close() several times is supported. Patch by Pascal Chambon.