Skip to content

Commit 290daa1

Browse files
committed
tests/float: Add test for parsing a float from an empty string.
1 parent 4fb72fe commit 290daa1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/float/float1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
print(float("INFINITY"))
2323
print(float("nan"))
2424
print(float("NaN"))
25+
try:
26+
float("")
27+
except ValueError:
28+
print("ValueError")
2529
try:
2630
float("1e+")
2731
except ValueError:

0 commit comments

Comments
 (0)