Skip to content

Commit e25bfee

Browse files
committed
Fix violin test
1 parent b4b974c commit e25bfee

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9312,16 +9312,13 @@ def test_violinplot_orientation(fig_test, fig_ref):
93129312

93139313
plt.close()
93149314

9315-
# Deprecation of `vert: bool` keyword
9316-
with pytest.warns(mpl.MatplotlibDeprecationWarning,
9317-
match='vert: bool was deprecated in Matplotlib 3.10'):
9318-
# Compare images between a figure that
9319-
# uses vert and one that uses orientation.
9320-
ax_ref = fig_ref.subplots()
9321-
ax_ref.violinplot(all_data, vert=False)
9315+
# Compare images between a figure that
9316+
# uses vert and one that uses orientation.
9317+
ax_ref = fig_ref.subplots()
9318+
ax_ref.violinplot(all_data, vert=False)
93229319

9323-
ax_test = fig_test.subplots()
9324-
ax_test.violinplot(all_data, orientation='horizontal')
9320+
ax_test = fig_test.subplots()
9321+
ax_test.violinplot(all_data, orientation='horizontal')
93259322

93269323

93279324
@check_figures_equal(extensions=['png'])

0 commit comments

Comments
 (0)