mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +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:
parent
5a424c2393
commit
2c6079775e
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue