diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-03-29 20:07:13 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-03-30 17:37:13 -0700 |
| commit | edadccd8dcf5fc1de86116adb5f9f13ed1b68637 (patch) | |
| tree | 382ad5e83f6512ff157553c6a8c16b63569cec70 /tests | |
| parent | e9a2a1018349f3eda9811bcadb63d4e2af05fd2f (diff) | |
| download | flake8-edadccd8dcf5fc1de86116adb5f9f13ed1b68637.tar.gz | |
audit + string joining
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_utils.py | 2 |
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.""" |
