Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #19051 - Fixed Selenium tearDownClass method; thanks glarrain f…

…or the report.
  • Loading branch information...
commit a1a5c0854f0b0d3c94a772c8b994ee2d1d2f9be1 1 parent 7251282
@timgraham timgraham authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 django/contrib/admin/tests.py
  2. +1 −1  docs/topics/testing.txt
View
4 django/contrib/admin/tests.py
@@ -21,9 +21,9 @@ def setUpClass(cls):
@classmethod
def tearDownClass(cls):
- super(AdminSeleniumWebDriverTestCase, cls).tearDownClass()
if hasattr(cls, 'selenium'):
cls.selenium.quit()
+ super(AdminSeleniumWebDriverTestCase, cls).tearDownClass()
def wait_until(self, callback, timeout=10):
"""
@@ -98,4 +98,4 @@ def has_css_class(self, selector, klass):
`klass`.
"""
return (self.selenium.find_element_by_css_selector(selector)
- .get_attribute('class').find(klass) != -1)
+ .get_attribute('class').find(klass) != -1)
View
2  docs/topics/testing.txt
@@ -1973,8 +1973,8 @@ Then, add a ``LiveServerTestCase``-based test to your app's tests module
@classmethod
def tearDownClass(cls):
- super(MySeleniumTests, cls).tearDownClass()
cls.selenium.quit()
+ super(MySeleniumTests, cls).tearDownClass()
def test_login(self):
self.selenium.get('%s%s' % (self.live_server_url, '/login/'))
Please sign in to comment.
Something went wrong with that request. Please try again.