This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author umedoblock
Recipients umedoblock, zach.ware
Date 2015-08-08.08:45:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439023558.34.0.160116821459.issue24827@psf.upfronthosting.co.za>
In-reply-to
Content
I have a headache.
because python reports many error after I patched below patches.

--- Lib/test/test_decimal.py.orig       2015-08-08 17:41:01.986316738 +0900
+++ Lib/test/test_decimal.py    2015-08-08 17:41:05.470316878 +0900
@@ -1935,6 +1935,7 @@
             ('123.456', 4, '123.4560'),
             ('123.455', 2, '123.46'),
             ('123.445', 2, '123.44'),
+            ('1.65', 1, '1.7'),
             ('Inf', 4, 'NaN'),
             ('-Inf', -23, 'NaN'),
             ('sNaN314', 3, 'NaN314'),

--- ./Lib/decimal.py.orig       2015-08-08 17:42:20.662319881 +0900
+++ ./Lib/decimal.py    2015-08-08 17:39:40.210313472 +0900
@@ -1782,7 +1782,7 @@
     def _round_half_even(self, prec):
         """Round 5 to even, rest to nearest."""
         if _exact_half(self._int, prec) and \
-                (prec == 0 or self._int[prec-1] in '02468'):
+                (prec == 0 or self._int[prec-1] in '01234'):
             return -1
         else:
             return self._round_half_up(prec)
History
Date User Action Args
2015-08-08 08:45:58umedoblocksetrecipients: + umedoblock, zach.ware
2015-08-08 08:45:58umedoblocksetmessageid: <1439023558.34.0.160116821459.issue24827@psf.upfronthosting.co.za>
2015-08-08 08:45:58umedoblocklinkissue24827 messages
2015-08-08 08:45:57umedoblockcreate