Permalink
Browse files

Destroy selenium before live server threads.

Ensure that selenium quits before the live server thread to
prevent occasional hangs when killing the live server.
  • Loading branch information...
1 parent 5a424c2 commit 2c6079775e12366279dc0bb094ba860e4473be3c @apollo13 apollo13 committed Sep 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/tests.py
@@ -31,9 +31,9 @@ def setUpClass(cls):
@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):
"""

0 comments on commit 2c60797

Please sign in to comment.