summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-09-07 16:17:41 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-09-07 16:17:41 (GMT)
commit491ea55f2866cc0b4fee036069fc07748920b0cf (patch)
tree38391ebf58ed20617054956b618a39af7d353ff7 /Lib/test/test_decimal.py
parentd692a71fddbbc8cebabf260e7d11e113cff4f73e (diff)
downloadcpython-491ea55f2866cc0b4fee036069fc07748920b0cf.zip
cpython-491ea55f2866cc0b4fee036069fc07748920b0cf.tar.gz
cpython-491ea55f2866cc0b4fee036069fc07748920b0cf.tar.bz2
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 0be901a..f7f023d 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -760,6 +760,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)