Skip to content

Commit ec0d913

Browse files
committed
Remove strict=True from zip() calls with unequal lengths
Fixed test_line_colors_and_styles_subplots and test_kde_colors_and_styles_subplots by removing strict=True. These tests expect default_colors to be longer than axes.
1 parent 40cab0a commit ec0d913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/plotting/frame/test_frame_color.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def test_line_colors_and_styles_subplots(self):
365365
df = DataFrame(np.random.default_rng(2).standard_normal((5, 5)))
366366

367367
axes = df.plot(subplots=True)
368-
for ax, c in zip(axes, list(default_colors), strict=True):
368+
for ax, c in zip(axes, list(default_colors)):
369369
_check_colors(ax.get_lines(), linecolors=[c])
370370

371371
@pytest.mark.parametrize("color", ["k", "green"])
@@ -535,7 +535,7 @@ def test_kde_colors_and_styles_subplots(self):
535535
df = DataFrame(np.random.default_rng(2).standard_normal((5, 5)))
536536

537537
axes = df.plot(kind="kde", subplots=True)
538-
for ax, c in zip(axes, list(default_colors), strict=True):
538+
for ax, c in zip(axes, list(default_colors)):
539539
_check_colors(ax.get_lines(), linecolors=[c])
540540

541541
@pytest.mark.parametrize("colormap", ["k", "red"])

0 commit comments

Comments
 (0)