Skip to content

Commit 0e19847

Browse files
committed
rfc test_format.py
1 parent fb4c5fd commit 0e19847

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pandas/tests/io/formats/test_format.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,10 @@ def test_repr_min_rows(self):
380380
def test_repr_float_formatting_html_output(
381381
self, data, format_option, expected_values
382382
):
383-
if format_option is not None:
384-
with option_context("display.float_format", format_option.format):
385-
df = DataFrame(data)
386-
html_output = df._repr_html_()
387-
assert expected_values in html_output
383+
with option_context("display.float_format", format_option.format):
384+
df = DataFrame(data)
385+
html_output = df._repr_html_()
386+
assert expected_values in html_output
388387

389388
def test_str_max_colwidth(self):
390389
# GH 7856

0 commit comments

Comments
 (0)