Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.4.X] Fixed #19051 - Fixed Selenium tearDownClass method; thanks gl…

…arrain for the report.

Backport of a1a5c08 from master
  • Loading branch information...
commit a35d7fd1e1c8e2a1e95b6d16949f9fb3977f15cb 1 parent 8868a06
@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
@@ -25,9 +25,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):
"""
@@ -102,4 +102,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
@@ -1922,8 +1922,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.