summaryrefslogtreecommitdiff
path: root/tests/float/string_format.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-05-28 14:24:47 +0000
committerDamien George <damien.p.george@gmail.com>2015-05-28 14:24:47 +0000
commit9ede4dcfbb31a4adbd729466d72a1d10aa81b4fc (patch)
tree9900d522693a4470072be03c5dbffd56311cd1ce /tests/float/string_format.py
parent79474c6b164fb66a8d348bfa57613f9dbf5af4e8 (diff)
tests: Add some tests for printing floats to improve coverage.
Diffstat (limited to 'tests/float/string_format.py')
-rw-r--r--tests/float/string_format.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/float/string_format.py b/tests/float/string_format.py
index 265efedec..9ffbec4ff 100644
--- a/tests/float/string_format.py
+++ b/tests/float/string_format.py
@@ -122,6 +122,9 @@ if full_tests:
test_fmt('', fill, alignment, sign, '', width, prec, type, num)
for num in pct_nums2:
test_fmt('', fill, alignment, sign, '', width, '', type, num)
+else:
+ for num in pct_nums1:
+ test_fmt('', '', '', '', '', '', '1', '%', num)
# We don't currently test a type of '' with floats (see the detailed comment
# in objstr.c)