Skip to content

Commit 383e10f

Browse files
banesullivanlwasser
authored andcommitted
Use match= in validation testing
1 parent 2b9c1cf commit 383e10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/test_parse_issues.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_parse_doi_archives(process_issues, data_file):
7474

7575
review = data_file("reviews/archives_invalid.txt", True)
7676

77-
with pytest.raises(ValueError):
77+
with pytest.raises(ValueError, match="Invalid archive"):
7878
review = process_issues.parse_issue(review)
7979

8080

0 commit comments

Comments
 (0)