Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 54d6992

Browse filesBrowse files
authored
TST: Add missing warning type to pytest.warns (#23407)
1 parent 5988611 commit 54d6992
Copy full SHA for 54d6992

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.