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 672c029

Browse filesBrowse files
authored
Merge pull request #13221 from meeseeksmachine/auto-backport-of-pr-13194-on-v3.0.x
Backport PR #13194 on branch v3.0.x (TST: Fix incorrect call to pytest.raises.)
2 parents b07d5fb + b6d0795 commit 672c029
Copy full SHA for 672c029

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_figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_figure.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ def test_subplots_shareax_loglabels():
365365

366366
def test_savefig():
367367
fig = plt.figure()
368-
msg = "savefig() takes 2 positional arguments but 3 were given"
369-
with pytest.raises(TypeError, message=msg):
368+
msg = r"savefig\(\) takes 2 positional arguments but 3 were given"
369+
with pytest.raises(TypeError, match=msg):
370370
fig.savefig("fname1.png", "fname2.png")
371371

372372

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.