Skip to content

Commit 720e4bb

Browse files
committed
Fix TestBigRepoR.setUp info message
Changes that fix the message itself: - Add a missing space between words (two parts were concatenated, with no space at the edge of either). - Capitalize "GitPython" since that is the repo and project name. Changes that improve how the message is produced: - Make the entire literal part of the string the format string, instead of formatting the first part and concatenating the second part. - Pass the format string and k_env_git_repo variable as separate arguments to logging.info, so the logging machinery takes care of substituting it for %s, rather than doing the substitution.
1 parent db317f1 commit 720e4bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: test/performance/lib.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ def setUp(self):
4545
repo_path = os.environ.get(k_env_git_repo)
4646
if repo_path is None:
4747
logging.info(
48-
("You can set the %s environment variable to a .git repository of" % k_env_git_repo)
49-
+ "your choice - defaulting to the gitpython repository"
48+
"You can set the %s environment variable to a .git repository of your"
49+
" choice - defaulting to the GitPython repository",
50+
k_env_git_repo,
5051
)
5152
repo_path = osp.dirname(__file__)
5253
# end set some repo path

0 commit comments

Comments
 (0)