Skip to content

Commit

Permalink
Add match to pytest.raises
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed Oct 16, 2024
1 parent ec7b312 commit ea206e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cherry_picker/test_cherry_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def test_invalid_branch_empty_string(os_path_exists, config):
["3.1", "2.7", "3.10", "3.6", ""],
config=config,
)
with pytest.raises(ValueError):
with pytest.raises(ValueError, match=r"^Branch name is an empty string\.$"):
cp.sorted_branches


Expand Down

0 comments on commit ea206e0

Please sign in to comment.