From b42bb4f4dcdbce064d72916db437044b94057438 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Tue, 23 Jan 2024 15:11:47 -0500 Subject: [PATCH] Fix regexes --- test/rapids_pre_commit_hooks/test_copyright.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rapids_pre_commit_hooks/test_copyright.py b/test/rapids_pre_commit_hooks/test_copyright.py index 0902d27..f897793 100644 --- a/test/rapids_pre_commit_hooks/test_copyright.py +++ b/test/rapids_pre_commit_hooks/test_copyright.py @@ -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) @@ -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)