summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_format.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_format.py')
-rw-r--r--Lib/test/test_format.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index cd46bc2..06179de 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -232,6 +232,10 @@ class FormatTest(unittest.TestCase):
testboth("%o", -042L, "-42")
testboth("%o", float(042), "42")
+ # alternate float formatting
+ testformat('%g', 1.1, '1.1')
+ testformat('%#g', 1.1, '1.10000')
+
# Test exception for unknown format characters
if verbose:
print 'Testing exceptions'