Merged revisions 65257 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65257 | mark.dickinson | 2008-07-27 01:39:07 -0500 (Sun, 27 Jul 2008) | 3 lines

  Issue #3449: Update decimal module to use most recent specification
  (v. 1.68) and tests (v. 2.58) from IBM.
........
diff --git a/Lib/test/decimaltestdata/ddQuantize.decTest b/Lib/test/decimaltestdata/ddQuantize.decTest
index 8cd5287..6d68971 100644
--- a/Lib/test/decimaltestdata/ddQuantize.decTest
+++ b/Lib/test/decimaltestdata/ddQuantize.decTest
@@ -1,6 +1,6 @@
 ------------------------------------------------------------------------

 -- ddQuantize.decTest -- decDouble quantize operation                 --

--- Copyright (c) IBM Corporation, 1981, 2007.  All rights reserved.   --

+-- Copyright (c) IBM Corporation, 1981, 2008.  All rights reserved.   --

 ------------------------------------------------------------------------

 -- Please see the document "General Decimal Arithmetic Testcases"     --

 -- at http://www2.hursley.ibm.com/decimal for the description of      --

@@ -17,7 +17,7 @@
 --   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --

 --   mfc@uk.ibm.com                                                   --

 ------------------------------------------------------------------------

-version: 2.57

+version: 2.58

 

 -- Most of the tests here assume a "regular pattern", where the

 -- sign and coefficient are +1.

@@ -653,7 +653,15 @@
 ddqua1021 quantize  8.666666666666000E+384  1.000000000000000E+384 ->  8.666666666666000E+384

 ddqua1022 quantize -8.666666666666000E+384  1.000000000000000E+384 -> -8.666666666666000E+384

 ddqua1027 quantize 8.666666666666000E+323  1E+31    -> NaN Invalid_operation

-ddqua1030 quantize 8.66666666E+3           1E+3     -> 9E+3 Inexact Rounded

+ddqua1029 quantize 8.66666666E+3           1E+3     -> 9E+3 Inexact Rounded

+

+

+--ddqua1030 quantize 8.666666666666000E+384 1E+384   -> 9.000000000000000E+384 Rounded Inexact

+--ddqua1031 quantize 8.666666666666000E+384 1E+384   -> 8.666666666666000E+384 Rounded

+--ddqua1032 quantize 8.666666666666000E+384 1E+383   -> 8.666666666666000E+384 Rounded

+--ddqua1033 quantize 8.666666666666000E+384 1E+382   -> 8.666666666666000E+384 Rounded

+--ddqua1034 quantize 8.666666666666000E+384 1E+381   -> 8.666666666666000E+384 Rounded

+--ddqua1035 quantize 8.666666666666000E+384 1E+380   -> 8.666666666666000E+384 Rounded

 

 -- Int and uInt32 edge values for testing conversions

 ddqua1040 quantize -2147483646     0 -> -2147483646