summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Edmund Crosley <timothy.crosley@gmail.com>2020-05-14 22:57:19 -0700
committerGitHub <noreply@github.com>2020-05-14 22:57:19 -0700
commit00658770f800cbe2b32d53323c822a1f33e078bc (patch)
tree616c94ec13c977fcd79592e59a2ea6a3af15c7d4
parent68ddf8c6d2ed999fda27c9fdc9029ddd077b0c68 (diff)
parentcf6e644c5055a773bbddb0b881d204da43a4b943 (diff)
downloadisort-00658770f800cbe2b32d53323c822a1f33e078bc.tar.gz
Merge pull request #1203 from timothycrosley/deepsource-fix-bdaafe91
Use literal syntax to create data structure
-rw-r--r--tests/test_isort.py8
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)