summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)