Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 08c9ab5a0f564a3ac7803e6a97fae855f2e0524e 1 parent 4356964
@marfire marfire authored timgraham committed
View
1  django/contrib/admin/tests.py
@@ -32,6 +32,7 @@ def setUpClass(cls):
@classmethod
def _tearDownClassInternal(cls):
if hasattr(cls, 'selenium'):
+ cls.selenium.refresh() # see ticket #21227
cls.selenium.quit()
super(AdminSeleniumWebDriverTestCase, cls)._tearDownClassInternal()
View
1  tests/view_tests/tests/test_i18n.py
@@ -189,6 +189,7 @@ def setUpClass(cls):
@classmethod
def tearDownClass(cls):
+ cls.selenium.refresh() # see ticket #21227
cls.selenium.quit()
super(JavascriptI18nTests, cls).tearDownClass()
Please sign in to comment.
Something went wrong with that request. Please try again.