diff options
| author | chillaranand <anand21nanda@gmail.com> | 2017-01-21 18:43:44 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-25 12:23:46 -0500 |
| commit | d6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch) | |
| tree | ab02fd9949d4bfa23e27dea45e213ce334c883f0 /django/test/selenium.py | |
| parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'django/test/selenium.py')
| -rw-r--r-- | django/test/selenium.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/test/selenium.py b/django/test/selenium.py index e1415339dd..2b14678b23 100644 --- a/django/test/selenium.py +++ b/django/test/selenium.py @@ -18,7 +18,7 @@ class SeleniumTestCaseBase(type(LiveServerTestCase)): Dynamically create new classes and add them to the test module when multiple browsers specs are provided (e.g. --selenium=firefox,chrome). """ - test_class = super(SeleniumTestCaseBase, cls).__new__(cls, name, bases, attrs) + test_class = super().__new__(cls, name, bases, attrs) # If the test class is either browser-specific or a test base, return it. if test_class.browser or not any(name.startswith('test') and callable(value) for name, value in attrs.items()): return test_class @@ -60,7 +60,7 @@ class SeleniumTestCase(LiveServerTestCase, metaclass=SeleniumTestCaseBase): def setUpClass(cls): cls.selenium = cls.create_webdriver() cls.selenium.implicitly_wait(cls.implicit_wait) - super(SeleniumTestCase, cls).setUpClass() + super().setUpClass() @classmethod def _tearDownClassInternal(cls): @@ -69,7 +69,7 @@ class SeleniumTestCase(LiveServerTestCase, metaclass=SeleniumTestCaseBase): # kept a connection alive. if hasattr(cls, 'selenium'): cls.selenium.quit() - super(SeleniumTestCase, cls)._tearDownClassInternal() + super()._tearDownClassInternal() @contextmanager def disable_implicit_wait(self): |
