diff options
author | Raymond Hettinger <python@rcn.com> | 2003-08-27 04:55:52 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-08-27 04:55:52 +0000 |
commit | a348f7ea76134e459bffcef8f8176e5d09ffe5dd (patch) | |
tree | 91bb5fef3286d04e0ed384a735b00fa8530e289d /Lib/test/string_tests.py | |
parent | f6bb624271e3eb1be3d05ba593dbc407b793ec18 (diff) | |
download | cpython-a348f7ea76134e459bffcef8f8176e5d09ffe5dd.tar.gz |
SF bug #795506: Wrong handling of string format code for float values.
Adding missing support for '%F'.
Will backport to 2.3.1.
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r-- | Lib/test/string_tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 7c98a3bb8c..af171d08ab 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -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) |