summaryrefslogtreecommitdiffstats
path: root/Lib/test/string_tests.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-08-27 04:55:52 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-08-27 04:55:52 (GMT)
commit9bfe533c6967e2813420d75d4830de3923db0627 (patch)
treeffbcd3cf8cc8973c899a35f5abbe1d676f221902 /Lib/test/string_tests.py
parent063606a0d5302d8a5530297a70494a9cad334e83 (diff)
downloadcpython-9bfe533c6967e2813420d75d4830de3923db0627.zip
cpython-9bfe533c6967e2813420d75d4830de3923db0627.tar.gz
cpython-9bfe533c6967e2813420d75d4830de3923db0627.tar.bz2
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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py
index 7c98a3b..af171d0 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)