summaryrefslogtreecommitdiff
path: root/tests/profile
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-15 23:04:54 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-16 07:53:15 +0100
commit8020641d2b558f21fc28207e8aa8d5dd362f52e6 (patch)
treed162ca6c871edaaef9741da49bbaa5446c0a4121 /tests/profile
parent9552624cb72d721af2217d907f8e96780fc0203f (diff)
downloadpylint-git-8020641d2b558f21fc28207e8aa8d5dd362f52e6.tar.gz
Move from format() to f-string where it makes sense
As we do not maintain python 3.5 it permit to simplify some code
Diffstat (limited to 'tests/profile')
-rw-r--r--tests/profile/test_profile_against_externals.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/profile/test_profile_against_externals.py b/tests/profile/test_profile_against_externals.py
index 4bbac7556..27265f22c 100644
--- a/tests/profile/test_profile_against_externals.py
+++ b/tests/profile/test_profile_against_externals.py
@@ -42,11 +42,7 @@ def test_run(tmp_path, name, git_repo):
""" Runs pylint against external sources """
checkoutdir = tmp_path / name
checkoutdir.mkdir()
- os.system(
- "git clone --depth=1 {git_repo} {checkoutdir}".format(
- git_repo=git_repo, checkoutdir=str(checkoutdir)
- )
- )
+ os.system(f"git clone --depth=1 {git_repo} {checkoutdir}")
filepaths = _get_py_files(scanpath=str(checkoutdir))
print("Have %d files" % len(filepaths))