summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2013-05-29 13:45:38 (GMT)
committerStefan Krah <skrah@bytereef.org>2013-05-29 13:45:38 (GMT)
commit6edda14b2968ca07b94a2fdde4dd43215222fcd8 (patch)
treed404076004687dade874d90bf7340af609ba5f50 /Lib/test
parentc70a6ae49bd162af06130e48a45579d445e058a8 (diff)
downloadcpython-6edda14b2968ca07b94a2fdde4dd43215222fcd8.zip
cpython-6edda14b2968ca07b94a2fdde4dd43215222fcd8.tar.gz
cpython-6edda14b2968ca07b94a2fdde4dd43215222fcd8.tar.bz2
Issue #17768: Support newline fill character in decimal.py and NUL fill
character in _decimal.c.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_decimal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index e8256a5..2969394 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -1021,6 +1021,10 @@ class FormatTest(unittest.TestCase):
('/=10', '-45.6', '-/////45.6'),
('/=+10', '45.6', '+/////45.6'),
('/= 10', '45.6', ' /////45.6'),
+ ('\x00=10', '-inf', '-\x00Infinity'),
+ ('\x00^16', '-inf', '\x00\x00\x00-Infinity\x00\x00\x00\x00'),
+ ('\x00>10', '1.2345', '\x00\x00\x00\x001.2345'),
+ ('\x00<10', '1.2345', '1.2345\x00\x00\x00\x00'),
# thousands separator
(',', '1234567', '1,234,567'),