From: Mike Bayer Date: Fri, 19 Mar 2010 15:45:42 +0000 (-0400) Subject: distinguish between small, large, and many significant digits. the irony X-Git-Tag: rel_0_6beta2~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a8f05d4353f90b734ff878a03d5bb68351ad65b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git distinguish between small, large, and many significant digits. the irony that oracle and sybase are the ones that have the most issues with decimal numbers. --- diff --git a/test/sql/test_types.py b/test/sql/test_types.py index 341e9516e3..9c31eefcee 100644 --- a/test/sql/test_types.py +++ b/test/sql/test_types.py @@ -1192,7 +1192,6 @@ class NumericTest(TestBase): @testing.fails_on("sybase+pyodbc", "Don't know how do get these values through FreeTDS + Sybase") - @testing.fails_on('sqlite', 'The 319438... number fails.') def test_enotation_decimal_large(self): """test exceedingly large decimals. @@ -1200,7 +1199,6 @@ class NumericTest(TestBase): numbers = set([ decimal.Decimal('4E+8'), - decimal.Decimal("31943874831932418390.01"), decimal.Decimal("5748E+15"), decimal.Decimal('1.521E+15'), decimal.Decimal('00000000000000.1E+12'), @@ -1210,6 +1208,19 @@ class NumericTest(TestBase): numbers, numbers ) + + @testing.fails_on('sqlite', 'TODO') + @testing.fails_on('oracle', 'TODO') + @testing.fails_on('sybase', 'TODO') + def test_many_significant_digits(self): + numbers = set([ + decimal.Decimal("31943874831932418390.01"), + ]) + self._do_test( + Numeric(precision=25, scale=2), + numbers, + numbers + )