summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2007-08-30 22:23:08 (GMT)
committerEric Smith <eric@trueblade.com>2007-08-30 22:23:08 (GMT)
commit185e30cdf330b0c687a7afaf26b1eef761ff12ca (patch)
tree207ffc5193da7731b951d1e7e6819940517551f4 /Lib/test/test_builtin.py
parentbc3b345f8284620bba07e9c2ec4cd64553f2b983 (diff)
downloadcpython-185e30cdf330b0c687a7afaf26b1eef761ff12ca.zip
cpython-185e30cdf330b0c687a7afaf26b1eef761ff12ca.tar.gz
cpython-185e30cdf330b0c687a7afaf26b1eef761ff12ca.tar.bz2
Added format tests.
Fixed bug in alignment of negative numbers. Whitespace normalization.
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r--Lib/test/test_builtin.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index 2d3e1cc..e5957ae 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -540,6 +540,7 @@ class BuiltinTest(unittest.TestCase):
self.assertEqual(format(3.1415e-104, ""), str(3.1415e-104))
self.assertEqual(format(-3.1415e-104, ""), str(-3.1415e-104))
self.assertEqual(format(object, ""), str(object))
+ self.assertEqual(format(None, ""), str(None))
# TypeError because self.__format__ returns the wrong type
self.assertRaises(TypeError, format, H(), "")