Skip to content

Commit 1d43a75

Browse files
committed
Use format instead of f-string
1 parent 3a4fc6a commit 1d43a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_repo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def test_leaking_password_in_clone_logs(self, rw_dir):
244244
password = "fakepassword1234"
245245
try:
246246
Repo.clone_from(
247-
url=f"https://fakeuser:{password}@fakerepo.example.com/testrepo",
247+
url="https://fakeuser:{}@fakerepo.example.com/testrepo".format(password),
248248
to_path=rw_dir)
249249
except GitCommandError as err:
250250
assert password not in str(err)

0 commit comments

Comments
 (0)