Skip to content

Commit fc01097

Browse files
committed
chore: add comments making explicit about precision loss
1 parent e16c71b commit fc01097

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/io/parser/common/test_float.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def test_too_many_exponent_digits(all_parsers_all_precisions, exp, request):
8787
("3.2e1", 32.0),
8888
("3.2e80", 3.2e80),
8989
("3.2e-80", 3.2e-80),
90-
("18446744073709551616.0", float(1 << 64)),
91-
("18446744073709551616.5", (1 << 64) + 0.5),
92-
("36893488147419103232.3", (1 << 65) + 0.3),
90+
("18446744073709551616.0", float(1 << 64)), # loses precision
91+
("18446744073709551616.5", float(1 << 64)), # loses precision
92+
("36893488147419103232.3", float(1 << 65)), # loses precision
9393
],
9494
)
9595
def test_small_int_followed_by_float(

0 commit comments

Comments
 (0)