Check exception message in test_env_relfn2path

This commit is contained in:
Adam Turner 2024-11-22 17:14:49 +00:00
parent f6f59b4871
commit 3cfccf3f1d

View File

@ -190,7 +190,7 @@ def test_env_relfn2path(app):
# omit docname (w/o current docname)
app.env.temp_data.clear()
with pytest.raises(KeyError):
with pytest.raises(KeyError, match=r"^'docname'$"):
app.env.relfn2path('images/logo.jpg')