8000 Merge pull request #13221 from meeseeksmachine/auto-backport-of-pr-13… · matplotlib/matplotlib@672c029 · GitHub
[go: up one dir, main page]

Skip to content

Commit 672c029

Browse 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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_figure.py

Lines 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