Skip to content

Commit 54d6992

Browse files
authored
TST: Add missing warning type to pytest.warns (matplotlib#23407)
1 parent 5988611 commit 54d6992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3871,7 +3871,7 @@ def test_stem(use_line_collection):
38713871
ax.stem(x, np.cos(x),
38723872
linefmt='C2-.', markerfmt='k+', basefmt='C1-.', label=' ')
38733873
else:
3874-
with pytest.warns(match='deprecated'):
3874+
with pytest.warns(MatplotlibDeprecationWarning, match='deprecated'):
38753875
ax.stem(x, np.cos(x),
38763876
linefmt='C2-.', markerfmt='k+', basefmt='C1-.', label=' ',
38773877
use_line_collection=False)
@@ -3919,7 +3919,7 @@ def test_stem_orientation(use_line_collection):
39193919
linefmt='C2-.', markerfmt='kx', basefmt='C1-.',
39203920
orientation='horizontal')
39213921
else:
3922-
with pytest.warns(match='deprecated'):
3922+
with pytest.warns(MatplotlibDeprecationWarning, match='deprecated'):
39233923
ax.stem(x, np.cos(x),
39243924
linefmt='C2-.', markerfmt='kx', basefmt='C1-.',
39253925
use_line_collection=False,

0 commit comments

Comments
 (0)