summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-09-08 20:22:46 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-09-08 20:22:46 (GMT)
commit46ab5d09518286aabdd57f67bfd2ae7a6451afa2 (patch)
tree68f17ed70167e51344160fa20739e77cfb2ebfcc /Lib/test/test_decimal.py
parent3c064c172a0f075ad94bfaafe8823a05bc9b7cb8 (diff)
downloadcpython-46ab5d09518286aabdd57f67bfd2ae7a6451afa2.zip
cpython-46ab5d09518286aabdd57f67bfd2ae7a6451afa2.tar.gz
cpython-46ab5d09518286aabdd57f67bfd2ae7a6451afa2.tar.bz2
Merged revisions 74723 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74723 | mark.dickinson | 2009-09-08 21:20:19 +0100 (Tue, 08 Sep 2009) | 3 lines Issue #6857: Fix Decimal formatting to be consistent with existing float formatting: both are now right-aligned by default. ........
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index e3e50f0..39a0ad5 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -701,6 +701,7 @@ class DecimalFormatTest(unittest.TestCase):
('', '1.00', '1.00'),
# test alignment and padding
+ ('6', '123', ' 123'),
('<6', '123', '123 '),
('>6', '123', ' 123'),
('^6', '123', ' 123 '),
@@ -730,7 +731,7 @@ class DecimalFormatTest(unittest.TestCase):
(',', '-1234567', '-1,234,567'),
(',', '-123456', '-123,456'),
('7,', '123456', '123,456'),
- ('8,', '123456', '123,456 '),
+ ('8,', '123456', ' 123,456'),
('08,', '123456', '0,123,456'), # special case: extra 0 needed
('+08,', '123456', '+123,456'), # but not if there's a sign
(' 08,', '123456', ' 123,456'),