Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f207b6 commit ede187fCopy full SHA for ede187f
1 file changed
Lib/test/test_builtin.py
@@ -548,6 +548,8 @@ def test_float(self):
548
if have_unicode:
549
self.assertEqual(float(unicode(" 3.14 ")), 3.14)
550
self.assertEqual(float(unicode(" \u0663.\u0661\u0664 ",'raw-unicode-escape')), 3.14)
551
+ # Implementation limitation in PyFloat_FromString()
552
+ self.assertRaises(ValueError, float, unicode("1"*10000))
553
554
def test_float_with_comma(self):
555
# set locale to something that doesn't use '.' for the decimal point
0 commit comments