]> granicus.if.org Git - python/commit
Issue #8567: Fix incorrect precedence of signals in Decimal module.
authorMark Dickinson <dickinsm@gmail.com>
Tue, 4 May 2010 14:25:50 +0000 (14:25 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Tue, 4 May 2010 14:25:50 +0000 (14:25 +0000)
commit4f96f5ffc6dd0b171bb14666d134af84ae307752
tree2bef593e0910acdc4be51ccd21ae5fa9c6b02806
parent712021991849257ed1162368b0a31bb008412636
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.
Lib/decimal.py
Lib/test/test_decimal.py
Misc/NEWS