mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
SF bug #795506: Wrong handling of string format code for float values.
Adding missing support for '%F'. Will backport to 2.3.1.
This commit is contained in:
parent
063606a0d5
commit
9bfe533c69
4 changed files with 10 additions and 0 deletions
|
@ -550,6 +550,7 @@ class MixinStrUnicodeUserStringTest:
|
|||
|
||||
self.checkequal(' 42', '%3ld', '__mod__', 42)
|
||||
self.checkequal('0042.00', '%07.2f', '__mod__', 42)
|
||||
self.checkequal('0042.00', '%07.2F', '__mod__', 42)
|
||||
|
||||
self.checkraises(TypeError, 'abc', '__mod__')
|
||||
self.checkraises(TypeError, '%(foo)s', '__mod__', 42)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue