summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2014-08-26 18:47:32 (GMT)
committerStefan Krah <skrah@bytereef.org>2014-08-26 18:47:32 (GMT)
commit9ea83cff473a8dea3fa4c34e0036c3de3e09b77e (patch)
tree20f2e96d0b19c4f633273ff6e5ee3204fa4985bc /Lib/test/test_decimal.py
parente863739e61996f5bf48a14b2fe69a95d23fe45e0 (diff)
parent298131a44896a4fec1ea829814ad52409d59aba5 (diff)
downloadcpython-9ea83cff473a8dea3fa4c34e0036c3de3e09b77e.zip
cpython-9ea83cff473a8dea3fa4c34e0036c3de3e09b77e.tar.gz
cpython-9ea83cff473a8dea3fa4c34e0036c3de3e09b77e.tar.bz2
Merge 3.4.
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index f8bb7eb..be60887 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -1058,6 +1058,11 @@ class FormatTest(unittest.TestCase):
# issue 6850
('a=-7.0', '0.12345', 'aaaa0.1'),
+
+ # issue 22090
+ ('<^+15.20%', 'inf', '<<+Infinity%<<<'),
+ ('\x07>,%', 'sNaN1234567', 'sNaN1234567%'),
+ ('=10.10%', 'NaN123', ' NaN123%'),
]
for fmt, d, result in test_values:
self.assertEqual(format(Decimal(d), fmt), result)