summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-03-29 20:07:13 -0700
committerAnthony Sottile <asottile@umich.edu>2021-03-30 17:37:13 -0700
commitedadccd8dcf5fc1de86116adb5f9f13ed1b68637 (patch)
tree382ad5e83f6512ff157553c6a8c16b63569cec70 /tests
parente9a2a1018349f3eda9811bcadb63d4e2af05fd2f (diff)
downloadflake8-edadccd8dcf5fc1de86116adb5f9f13ed1b68637.tar.gz
audit + string joining
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py
index c0cf237..4304057 100644
--- a/tests/unit/test_utils.py
+++ b/tests/unit/test_utils.py
@@ -134,7 +134,7 @@ def test_normalize_path(value, expected):
(["flake8", "pep8", "pyflakes", "mccabe"],
["flake8", "pep8", "pyflakes", "mccabe"]),
(["../flake8", "../pep8", "../pyflakes", "../mccabe"],
- [os.path.abspath("../" + p) for p in RELATIVE_PATHS]),
+ [os.path.abspath(f"../{p}") for p in RELATIVE_PATHS]),
])
def test_normalize_paths(value, expected):
"""Verify we normalizes a sequence of paths provided to the tool."""