diff options
author | deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | 2020-05-15 05:55:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 05:55:33 +0000 |
commit | cf6e644c5055a773bbddb0b881d204da43a4b943 (patch) | |
tree | 616c94ec13c977fcd79592e59a2ea6a3af15c7d4 | |
parent | 68ddf8c6d2ed999fda27c9fdc9029ddd077b0c68 (diff) | |
download | isort-deepsource-fix-bdaafe91.tar.gz |
Use literal syntax to create data structuredeepsource-fix-bdaafe91
-rw-r--r-- | tests/test_isort.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_isort.py b/tests/test_isort.py index 5859a570..2e0ee6e4 100644 --- a/tests/test_isort.py +++ b/tests/test_isort.py @@ -3172,13 +3172,9 @@ def test_path_finder(monkeypatch) -> None: finder = finders.PathFinder(config=config) third_party_prefix = next(path for path in finder.paths if "site-packages" in path) ext_suffixes = importlib.machinery.EXTENSION_SUFFIXES - imaginary_paths = set( - [ - posixpath.join(finder.stdlib_lib_prefix, "example_1.py"), + imaginary_paths = {posixpath.join(finder.stdlib_lib_prefix, "example_1.py"), posixpath.join(third_party_prefix, "example_2.py"), - posixpath.join(os.getcwd(), "example_3.py"), - ] - ) + posixpath.join(os.getcwd(), "example_3.py"),} imaginary_paths.update( { posixpath.join(third_party_prefix, "example_" + str(i) + ext_suffix) |