Skip to content

Commit 02872d4

Browse files
thisisnicpitrou
andauthored
Update python/pyarrow/tests/test_scalars.py
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
1 parent 032dd85 commit 02872d4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

python/pyarrow/tests/test_scalars.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ def test_numerics():
258258
assert repr(s) == "<pyarrow.HalfFloatScalar: 0.5>"
259259
assert str(s) == "0.5"
260260
assert s.as_py() == 0.5
261+
assert float(s) == 1.5
261262
assert int(s) == 0
262263

263264

0 commit comments

Comments
 (0)