Skip to content

Commit 2686655

Browse files
committed
test: test explicit float
1 parent 8908d84 commit 2686655

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,17 @@ def test_too_many_exponent_digits(all_parsers_all_precisions, exp, request):
8282
@pytest.mark.parametrize(
8383
"value, expected_value",
8484
[
85+
("18446744073709551616.0", float(1 << 64)),
8586
("18446744073709551616.5", (1 << 64) + 0.5),
86-
("18446744073709551616", float(1 << 64)),
87+
("36893488147419103232.3", (1 << 65) + 0.3),
8788
],
88-
ids=["2pow64_plus_half", "2pow64"],
89+
ids=["2pow64_float", "2pow64_plus_half", "2pow65_plus_third"],
8990
)
90-
def test_small_int_big_number(
91+
def test_small_int_followed_by_float(
9192
all_parsers_all_precisions, value, expected_value, request
9293
):
9394
# GH#51295
9495
parser, precision = all_parsers_all_precisions
95-
if parser.engine == "python" and value == "18446744073709551616":
96-
mark = pytest.mark.xfail(reason="Still need to work on Python parser")
97-
request.applymarker(mark)
9896
data = f"""data
9997
42
10098
{value}"""

0 commit comments

Comments
 (0)