summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-09-07 16:23:26 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-09-07 16:23:26 (GMT)
commitd496d300ea45ed1e8864050da629d184ea37c70d (patch)
tree974079c4aae38f50772b94f284f9b3572aff07e0 /Lib/test/test_decimal.py
parentb55628f08756e936f46d047130c831b47fd51831 (diff)
downloadcpython-d496d300ea45ed1e8864050da629d184ea37c70d.zip
cpython-d496d300ea45ed1e8864050da629d184ea37c70d.tar.gz
cpython-d496d300ea45ed1e8864050da629d184ea37c70d.tar.bz2
Merged revisions 74706 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k ................ r74706 | mark.dickinson | 2009-09-07 17:21:56 +0100 (Mon, 07 Sep 2009) | 10 lines Merged revisions 74704 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r74704 | mark.dickinson | 2009-09-07 17:17:41 +0100 (Mon, 07 Sep 2009) | 3 lines Issue #6850: Fix bug in Decimal._parse_format_specifier for formats with no type specifier. ........ ................
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index 927fd1a..f0c4431 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -749,6 +749,9 @@ class DecimalFormatTest(unittest.TestCase):
(',%', '123.456789', '12,345.6789%'),
(',e', '123456', '1.23456e+5'),
(',E', '123456', '1.23456E+5'),
+
+ # issue 6850
+ ('a=-7.0', '0.12345', 'aaaa0.1'),
]
for fmt, d, result in test_values:
self.assertEqual(format(Decimal(d), fmt), result)