Skip to content

Commit 3cfccf3

Browse files
committed
Check exception message in test_env_relfn2path
1 parent f6f59b4 commit 3cfccf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_environment/test_environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def test_env_relfn2path(app):
190190

191191
# omit docname (w/o current docname)
192192
app.env.temp_data.clear()
193-
with pytest.raises(KeyError):
193+
with pytest.raises(KeyError, match=r"^'docname'$"):
194194
app.env.relfn2path('images/logo.jpg')
195195

196196

0 commit comments

Comments
 (0)