aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r--Lib/test/test_builtin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index 0560045d034..2d3e1ccd90b 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -541,7 +541,8 @@ class BuiltinTest(unittest.TestCase):
self.assertEqual(format(-3.1415e-104, ""), str(-3.1415e-104))
self.assertEqual(format(object, ""), str(object))
- #self.assertRaises(TypeError, format, H(), "")
+ # TypeError because self.__format__ returns the wrong type
+ self.assertRaises(TypeError, format, H(), "")
def test_getattr(self):
import sys