summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2026-04-23 08:52:41 +0200
committerGitHub <noreply@github.com>2026-04-23 08:52:41 +0200
commit183e6505b64c140ad2ad64626c52bba88fc13edd (patch)
tree53ddec0fe3eb2bb62891923316a02a945f7bd5af /tests
parentfa2a3de6ede10b005fc2c1d23f4cffb53eaec425 (diff)
Refs #35943 -- Fixed admin_views.test_related_object_lookups crash when selenium is not installed.
Diffstat (limited to 'tests')
-rw-r--r--tests/admin_views/test_related_object_lookups.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/admin_views/test_related_object_lookups.py b/tests/admin_views/test_related_object_lookups.py
index eeba23f4f3..d15625efa6 100644
--- a/tests/admin_views/test_related_object_lookups.py
+++ b/tests/admin_views/test_related_object_lookups.py
@@ -1,5 +1,3 @@
-from selenium.common.exceptions import TimeoutException
-
from django.contrib.admin.tests import AdminSeleniumTestCase
from django.contrib.auth.models import User
from django.test import override_settings
@@ -183,6 +181,7 @@ class SeleniumTests(AdminSeleniumTestCase):
)
def test_child_popup_not_closed_when_parent_minimized(self):
+ from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.by import By
album_add_url = reverse("admin:admin_views_album_add")