mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Check exception message in test_env_relfn2path
This commit is contained in:
parent
f6f59b4871
commit
3cfccf3f1d
@ -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')
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user