summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/shell/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/shell/tests.py b/tests/shell/tests.py
index 49c85ecbe3..ff4db089f7 100644
--- a/tests/shell/tests.py
+++ b/tests/shell/tests.py
@@ -303,11 +303,16 @@ class ShellCommandAutoImportsTestCase(SimpleTestCase):
def test_message_with_stdout_listing_objects_with_isort_not_installed(self):
class TestCommand(shell.Command):
def get_auto_imports(self):
+ # Include duplicate import strings to ensure proper handling,
+ # independent of isort's deduplication (#36252).
return super().get_auto_imports() + [
"django.urls.reverse",
"django.urls.resolve",
"shell",
"django",
+ "django.urls.reverse",
+ "shell",
+ "django",
]
with captured_stdout() as stdout: