mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-41873: Add vectorcall for float() (GH-22432)
This commit is contained in:
parent
cb6db8b6ae
commit
e8acc355d4
3 changed files with 23 additions and 0 deletions
|
@ -64,6 +64,9 @@ class GeneralFloatCases(unittest.TestCase):
|
|||
# See bpo-34087
|
||||
self.assertRaises(ValueError, float, '\u3053\u3093\u306b\u3061\u306f')
|
||||
|
||||
def test_noargs(self):
|
||||
self.assertEqual(float(), 0.0)
|
||||
|
||||
def test_underscores(self):
|
||||
for lit in VALID_UNDERSCORE_LITERALS:
|
||||
if not any(ch in lit for ch in 'jJxXoObB'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue