Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_types.py @ 48021:40db45bfc0f2 legacy-trunk
Fix issue 3411: default float format spec fails on negative numbers.
| author | Eric Smith <eric@trueblade.com> |
|---|---|
| date | Sat, 19 Jul 2008 00:24:05 +0000 |
| parents | 5c33009994b4 |
| children | 51102abdec50 c5e0d9beebf9 |
line wrap: on
line diff
--- a/Lib/test/test_types.py Fri Jul 18 19:30:22 2008 +0000 +++ b/Lib/test/test_types.py Sat Jul 19 00:24:05 2008 +0000 @@ -570,6 +570,12 @@ 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')
