summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-11-29 15:45:14 +0000
committerWalter Dörwald <walter@livinglogic.de>2005-11-29 15:45:14 +0000
commit770217b6ad6a10f34088c2b3a62afbbdcc2db348 (patch)
tree6f5791857b8b0a042b67588b16b6c65cbc5fb097 /Lib/test
parent559b1e9d0bd1368d0e0953a9aef52c843d8db917 (diff)
downloadcpython-770217b6ad6a10f34088c2b3a62afbbdcc2db348.tar.gz
Test another error case in PyFloat_FromString().
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_builtin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index dd008745c9..c8a4822c7f 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