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
1 changed files with 1 additions and 1 deletions

View File

@ -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):
"""