diff --git a/django/contrib/admin/tests.py b/django/contrib/admin/tests.py index 93191f6a0d..6e11963a94 100644 --- a/django/contrib/admin/tests.py +++ b/django/contrib/admin/tests.py @@ -31,9 +31,9 @@ class AdminSeleniumWebDriverTestCase(StaticLiveServerCase): @classmethod def _tearDownClassInternal(cls): - super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal() if hasattr(cls, 'selenium'): cls.selenium.quit() + super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal() def wait_until(self, callback, timeout=10): """