summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_float.py
diff options
context:
space:
mode:
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>2020-09-29 00:55:52 (GMT)
committerGitHub <noreply@github.com>2020-09-29 00:55:52 (GMT)
commite8acc355d430b45f1c3ff83312e72272262a854f (patch)
treef0e7e832cbe141535675e5b05c581ceb1a4a0452 /Lib/test/test_float.py
parentcb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc (diff)
downloadcpython-e8acc355d430b45f1c3ff83312e72272262a854f.zip
cpython-e8acc355d430b45f1c3ff83312e72272262a854f.tar.gz
cpython-e8acc355d430b45f1c3ff83312e72272262a854f.tar.bz2
bpo-41873: Add vectorcall for float() (GH-22432)
Diffstat (limited to 'Lib/test/test_float.py')
-rw-r--r--Lib/test/test_float.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py
index 9651281..99c81f0 100644
--- a/Lib/test/test_float.py
+++ b/Lib/test/test_float.py
@@ -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'):