summaryrefslogtreecommitdiff
path: root/django/contrib/admin/tests.py
diff options
context:
space:
mode:
authorKevin Christopher Henry <k@severian.com>2013-10-24 15:01:25 -0400
committerTim Graham <timograham@gmail.com>2013-10-24 15:07:41 -0400
commit08c9ab5a0f564a3ac7803e6a97fae855f2e0524e (patch)
treeb404a48bc2f95c1ad5f4a50cd5d2ef862e7d410d /django/contrib/admin/tests.py
parent43569647ab234cd1d2f4d41399b97b4b793d573a (diff)
Fixed #21227 -- Added workaround for selenium test failures
Added a refresh() before quit() in the selenium tests, since this solves the problem of spurious test failures in some environments.
Diffstat (limited to 'django/contrib/admin/tests.py')
-rw-r--r--django/contrib/admin/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/admin/tests.py b/django/contrib/admin/tests.py
index 6e11963a94..248a5798dd 100644
--- a/django/contrib/admin/tests.py
+++ b/django/contrib/admin/tests.py
@@ -32,6 +32,7 @@ class AdminSeleniumWebDriverTestCase(StaticLiveServerCase):
@classmethod
def _tearDownClassInternal(cls):
if hasattr(cls, 'selenium'):
+ cls.selenium.refresh() # see ticket #21227
cls.selenium.quit()
super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal()