Skip to content

Commit 9f55723

Browse files
committed
update test cases
1 parent 0e19847 commit 9f55723

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/tests/io/formats/test_format.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,17 @@ def test_repr_min_rows(self):
371371
@pytest.mark.parametrize(
372372
"data, format_option, expected_values",
373373
[
374-
({"A": [12345.6789]}, "{:12.3f}", "12345.679"),
375-
({"A": [None]}, "{:.3f}", "None"),
376-
({"A": [""]}, "{:.2f}", ""),
377-
({"A": [112345.6789]}, "{:6.3f}", "112345.679"),
374+
(12345.6789, "{:12.3f}", "12345.679"),
375+
(None, "{:.3f}", "None"),
376+
("", "{:.2f}", ""),
377+
(112345.6789, "{:6.3f}", "112345.679"),
378378
],
379379
)
380380
def test_repr_float_formatting_html_output(
381381
self, data, format_option, expected_values
382382
):
383383
with option_context("display.float_format", format_option.format):
384-
df = DataFrame(data)
384+
df = DataFrame({"A": [data]})
385385
html_output = df._repr_html_()
386386
assert expected_values in html_output
387387

0 commit comments

Comments
 (0)