summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2007-11-23 17:59:00 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2007-11-23 17:59:00 (GMT)
commit72bc54faed8f12dc89ecc989fc7921002db3427f (patch)
treeb10506e32c2a5a4de92fc230aeab3f40206cce7c /Lib/test
parent90b5bc3a7d098f12961e7debe7a5321b86a122c5 (diff)
downloadcpython-72bc54faed8f12dc89ecc989fc7921002db3427f.zip
cpython-72bc54faed8f12dc89ecc989fc7921002db3427f.tar.gz
cpython-72bc54faed8f12dc89ecc989fc7921002db3427f.tar.bz2
Major change in the internal structure of the Decimal
number: now it does not store the mantissa as a tuple of numbers, but as a string. This avoids a lot of conversions, and achieves a speedup of 40%. The API remains intact. Thanks Mark Dickinson.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_decimal.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index 27d1aa6..dbe7023 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -464,6 +464,7 @@ class DecimalExplicitConstructionTest(unittest.TestCase):
self.assertRaises(ValueError, Decimal, (1, (4, 3, 4, None, 1), 2) )
self.assertRaises(ValueError, Decimal, (1, (4, -3, 4, 9, 1), 2) )
self.assertRaises(ValueError, Decimal, (1, (4, 10, 4, 9, 1), 2) )
+ self.assertRaises(ValueError, Decimal, (1, (4, 3, 4, 'a', 1), 2) )
def test_explicit_from_Decimal(self):