Skip to content

Commit af9927b

Browse files
committed
Fixed the code style issue causing test failure
1 parent 1231ebd commit af9927b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/tests/io/formats/style/test_bar.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,14 @@ def test_bar_color_and_cmap_error_raises():
317317

318318
def test_bar_invalid_color_type_error_raises():
319319
df = DataFrame({"A": [1, 2, 3, 4]})
320-
msg = r"`color` must be string or list or tuple of 2 strings,\(eg: color=\['#d65f5f', '#5fba7d'\]\)"
320+
msg = (
321+
r"`color` must be string or list or tuple of 2 strings,"
322+
r"\(eg: color=\['#d65f5f', '#5fba7d'\]\)"
323+
)
321324
# Test that providing an invalid color type raises a ValueError
322325
with pytest.raises(ValueError, match=msg):
323326
df.style.bar(color=123).to_html()
324327

325328
# Test that providing a color list with more than two elements raises a ValueError
326329
with pytest.raises(ValueError, match=msg):
327-
df.style.bar(color=['#d65f5f', '#5fba7d', '#abcdef']).to_html()
330+
df.style.bar(color=['#d65f5f', '#5fba7d', '#abcdef']).to_html()

0 commit comments

Comments
 (0)