summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-11-29 15:45:14 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-11-29 15:45:14 (GMT)
commitede187f0225a400e3b44915c71f1f6280380fd36 (patch)
tree7193f2daea6ca11b551b937f05c625c7db6d9625 /Lib
parent3f207b6acae9a4dac4289a46e5e6363c9d2de137 (diff)
downloadcpython-ede187f0225a400e3b44915c71f1f6280380fd36.zip
cpython-ede187f0225a400e3b44915c71f1f6280380fd36.tar.gz
cpython-ede187f0225a400e3b44915c71f1f6280380fd36.tar.bz2
Test another error case in PyFloat_FromString().
Diffstat (limited to 'Lib')
-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 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