Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7bdfd commit 4724634Copy full SHA for 4724634
1 file changed
lib/matplotlib/tests/test_figure.py
@@ -366,8 +366,8 @@ def test_subplots_shareax_loglabels():
366
367
def test_savefig():
368
fig = plt.figure()
369
- msg = "savefig() takes 2 positional arguments but 3 were given"
370
- with pytest.raises(TypeError, message=msg):
+ msg = r"savefig\(\) takes 2 positional arguments but 3 were given"
+ with pytest.raises(TypeError, match=msg):
371
fig.savefig("fname1.png", "fname2.png")
372
373
0 commit comments