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 /tests/sessions_tests | |
parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
download | django-d6eaf7c0183cd04b78f2a55e1d60bb7e59598310.tar.gz |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/sessions_tests')
-rw-r--r-- | tests/sessions_tests/models.py | 2 | ||||
-rw-r--r-- | tests/sessions_tests/tests.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/sessions_tests/models.py b/tests/sessions_tests/models.py index 7a358595e9..4fa216d9e6 100644 --- a/tests/sessions_tests/models.py +++ b/tests/sessions_tests/models.py @@ -29,7 +29,7 @@ class SessionStore(DBStore): return CustomSession def create_model_instance(self, data): - obj = super(SessionStore, self).create_model_instance(data) + obj = super().create_model_instance(data) try: account_id = int(data.get('_auth_user_id')) diff --git a/tests/sessions_tests/tests.py b/tests/sessions_tests/tests.py index 54b8ac53a5..9654c7d9eb 100644 --- a/tests/sessions_tests/tests.py +++ b/tests/sessions_tests/tests.py @@ -508,10 +508,10 @@ class FileSessionTests(SessionTestsMixin, unittest.TestCase): # Reset the file session backend's internal caches if hasattr(self.backend, '_storage_path'): del self.backend._storage_path - super(FileSessionTests, self).setUp() + super().setUp() def tearDown(self): - super(FileSessionTests, self).tearDown() + super().tearDown() settings.SESSION_FILE_PATH = self.original_session_file_path shutil.rmtree(self.temp_session_store) @@ -845,7 +845,7 @@ class CookieSessionTests(SessionTestsMixin, unittest.TestCase): @unittest.expectedFailure def test_actual_expiry(self): # The cookie backend doesn't handle non-default expiry dates, see #19201 - super(CookieSessionTests, self).test_actual_expiry() + super().test_actual_expiry() def test_unpickling_exception(self): # signed_cookies backend should handle unpickle exceptions gracefully |