Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/core/test_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def fn():

def test_option_fails_on_invalid_declaration(simple_fn):
"""option() raises an error if the flag name is invalid."""
with pytest.raises(ValueError):
with pytest.raises(
ValueError,
match=r"Invalid flag name: 'clock-rate'\. Must start with '-' or '--'\.",
):
option("clock-rate")(simple_fn)


Expand Down
Loading