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/cache | |
| parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/cache')
| -rw-r--r-- | tests/cache/tests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py index 7c61837ab0..d519080c9a 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -949,12 +949,12 @@ class DBCacheTests(BaseCacheTests, TransactionTestCase): def setUp(self): # The super calls needs to happen first for the settings override. - super(DBCacheTests, self).setUp() + super().setUp() self.create_table() def tearDown(self): # The super call needs to happen first because it uses the database. - super(DBCacheTests, self).tearDown() + super().tearDown() self.drop_table() def create_table(self): @@ -1074,7 +1074,7 @@ class PicklingSideEffect: class LocMemCacheTests(BaseCacheTests, TestCase): def setUp(self): - super(LocMemCacheTests, self).setUp() + super().setUp() # LocMem requires a hack to make the other caches # share a data store with the 'normal' cache. @@ -1321,7 +1321,7 @@ class FileBasedCacheTests(BaseCacheTests, TestCase): """ def setUp(self): - super(FileBasedCacheTests, self).setUp() + super().setUp() self.dirname = tempfile.mkdtemp() # Caches location cannot be modified through override_settings / modify_settings, # hence settings are manipulated directly here and the setting_changed signal @@ -1331,7 +1331,7 @@ class FileBasedCacheTests(BaseCacheTests, TestCase): setting_changed.send(self.__class__, setting='CACHES', enter=False) def tearDown(self): - super(FileBasedCacheTests, self).tearDown() + super().tearDown() # Call parent first, as cache.clear() may recreate cache base directory shutil.rmtree(self.dirname) @@ -1962,7 +1962,7 @@ def csrf_view(request): class CacheMiddlewareTest(SimpleTestCase): def setUp(self): - super(CacheMiddlewareTest, self).setUp() + super().setUp() self.factory = RequestFactory() self.default_cache = caches['default'] self.other_cache = caches['other'] @@ -1970,7 +1970,7 @@ class CacheMiddlewareTest(SimpleTestCase): def tearDown(self): self.default_cache.clear() self.other_cache.clear() - super(CacheMiddlewareTest, self).tearDown() + super().tearDown() def test_constructor(self): """ |
