1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

Destroy selenium before live server threads.

Ensure that selenium quits before the live server thread to
prevent occasional hangs when killing the live server.
This commit is contained in:
Florian Apolloner 2013-09-17 18:38:12 +02:00
parent 5a424c2393
commit 2c6079775e

View File

@ -31,9 +31,9 @@ class AdminSeleniumWebDriverTestCase(StaticLiveServerCase):
@classmethod @classmethod
def _tearDownClassInternal(cls): def _tearDownClassInternal(cls):
super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal()
if hasattr(cls, 'selenium'): if hasattr(cls, 'selenium'):
cls.selenium.quit() cls.selenium.quit()
super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal()
def wait_until(self, callback, timeout=10): def wait_until(self, callback, timeout=10):
""" """