Skip to content

Commit

Permalink
Check exception message in test_env_relfn2path
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Nov 22, 2024
1 parent f6f59b4 commit 3cfccf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_environment/test_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')


Expand Down

0 comments on commit 3cfccf3

Please sign in to comment.