Remove failing checks for explicit error messages.

This commit is contained in:
Mark Dickinson 2013-10-13 11:34:01 +01:00
parent ef8627b3f0
commit ed7bb488b4
1 changed files with 0 additions and 2 deletions

View File

@ -336,14 +336,12 @@ class FormatTest(unittest.TestCase):
self.assertEqual(format(f, ".3f"), "1.200")
with self.assertRaises(ValueError) as cm:
format(f, ".%sf" % (INT_MAX + 1))
self.assertEqual(str(cm.exception), "precision too big")
c = complex(f)
self.assertEqual(format(c, ".0f"), "1+0j")
self.assertEqual(format(c, ".3f"), "1.200+0.000j")
with self.assertRaises(ValueError) as cm:
format(c, ".%sf" % (INT_MAX + 1))
self.assertEqual(str(cm.exception), "precision too big")
if __name__ == "__main__":