From ede187f0225a400e3b44915c71f1f6280380fd36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Tue, 29 Nov 2005 15:45:14 +0000 Subject: Test another error case in PyFloat_FromString(). --- Lib/test/test_builtin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index dd00874..c8a4822 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -548,6 +548,8 @@ class BuiltinTest(unittest.TestCase): if have_unicode: self.assertEqual(float(unicode(" 3.14 ")), 3.14) self.assertEqual(float(unicode(" \u0663.\u0661\u0664 ",'raw-unicode-escape')), 3.14) + # Implementation limitation in PyFloat_FromString() + self.assertRaises(ValueError, float, unicode("1"*10000)) def test_float_with_comma(self): # set locale to something that doesn't use '.' for the decimal point -- cgit v0.12