Skip to content

Commit

Permalink
Fix regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Jan 23, 2024
1 parent dc4fb6c commit b42bb4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rapids_pre_commit_hooks/test_copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ def write_file(filename, content):
linter = Linter("file.txt", CONTENT + "Oops")
with pytest.warns(
copyright.ConflictingFilesWarning,
match=r'^File "file[.]txt" differs from Git history. Not running batch '
match=r'^File "file[.]txt" differs from Git history[.] Not running batch '
r"copyright update[.]$",
):
copyright.apply_batch_copyright_check(git_repo, linter)
Expand All @@ -992,7 +992,7 @@ def write_file(filename, content):
linter = Linter("file2.txt", CONTENT + "Oops")
with pytest.warns(
copyright.ConflictingFilesWarning,
match=r'^File "file2[.]txt" not in Git history. Not running batch copyright '
match=r'^File "file2[.]txt" not in Git history[.] Not running batch copyright '
r"update[.]$",
):
copyright.apply_batch_copyright_check(git_repo, linter)
Expand Down

0 comments on commit b42bb4f

Please sign in to comment.