summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-07-19 00:33:23 (GMT)
committerEric Smith <eric@trueblade.com>2008-07-19 00:33:23 (GMT)
commit2ad79e82c8db37477582d69eeaf46469da322a89 (patch)
tree5152678eb469333cd484d8bcadda38252d649236 /Lib
parent32480b0755a4724e62d639f7572fdb87d0f9abfe (diff)
downloadcpython-2ad79e82c8db37477582d69eeaf46469da322a89.zip
cpython-2ad79e82c8db37477582d69eeaf46469da322a89.tar.gz
cpython-2ad79e82c8db37477582d69eeaf46469da322a89.tar.bz2
Merged revisions 65125 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r65125 | eric.smith | 2008-07-18 20:24:05 -0400 (Fri, 18 Jul 2008) | 1 line Fix issue 3411: default float format spec fails on negative numbers. ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_types.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py
index 1b8e605..c200e07 100644
--- a/Lib/test/test_types.py
+++ b/Lib/test/test_types.py
@@ -497,6 +497,12 @@ class TypesTests(unittest.TestCase):
test(0.01, '', '0.01')
test(0.01, 'g', '0.01')
+ # test for issue 3411
+ test(1.23, '1', '1.23')
+ test(-1.23, '1', '-1.23')
+ test(1.23, '1g', '1.23')
+ test(-1.23, '1g', '-1.23')
+
test( 1.0, ' g', ' 1')
test(-1.0, ' g', '-1')
test( 1.0, '+g', '+1')