Skip to content

Commit 0b91c33

Browse files
committed
fix error pattern in test_fetch_files_from_commit
1 parent af43fab commit 0b91c33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

easybuild/tools/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ def commit_request_fn(gh):
738738
error_msg = f"HTTP error: {err}"
739739

740740
if error_msg:
741-
error_msg = f"Failed to download diff for {github_account}/{github_repo} commit {commit}! ({error_msg}"
741+
error_msg = f"Failed to download diff for {github_account}/{github_repo} commit {commit}! ({error_msg})"
742742
raise EasyBuildError(error_msg, exit_code=EasyBuildExit.FAIL_GITHUB)
743743

744744
files = det_patched_files(txt=diff_txt, omit_ab_prefix=True, github=True, filter_deleted=True)

test/framework/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ def test_fetch_files_from_commit(self):
548548
self.assertErrorRegex(EasyBuildError, error_pattern, fetch_files_from_commit, '7c83a55')
549549

550550
# test downloading of non-existing commit
551-
error_pattern = r"Failed to download diff for commit c0ff33c0ff33 of easybuilders/easybuild-easyconfigs"
551+
error_pattern = r"Failed to download diff for easybuilders/easybuild-easyconfigs commit c0ff33c0ff33"
552552
self.assertErrorRegex(EasyBuildError, error_pattern, fetch_files_from_commit, 'c0ff33c0ff33')
553553

554554
def test_fetch_easyconfigs_from_commit(self):

0 commit comments

Comments
 (0)