mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23919 -- Replaced super(ClassName, self) with super().
This commit is contained in:
@@ -99,7 +99,7 @@ class FileSystemLoaderTests(SimpleTestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.engine = Engine(dirs=[TEMPLATE_DIR], loaders=['django.template.loaders.filesystem.Loader'])
|
||||
super(FileSystemLoaderTests, cls).setUpClass()
|
||||
super().setUpClass()
|
||||
|
||||
@contextmanager
|
||||
def set_dirs(self, dirs):
|
||||
@@ -213,7 +213,7 @@ class AppDirectoriesLoaderTests(SimpleTestCase):
|
||||
cls.engine = Engine(
|
||||
loaders=['django.template.loaders.app_directories.Loader'],
|
||||
)
|
||||
super(AppDirectoriesLoaderTests, cls).setUpClass()
|
||||
super().setUpClass()
|
||||
|
||||
@override_settings(INSTALLED_APPS=['template_tests'])
|
||||
def test_get_template(self):
|
||||
@@ -237,7 +237,7 @@ class LocmemLoaderTests(SimpleTestCase):
|
||||
'index.html': 'index',
|
||||
})],
|
||||
)
|
||||
super(LocmemLoaderTests, cls).setUpClass()
|
||||
super().setUpClass()
|
||||
|
||||
def test_get_template(self):
|
||||
template = self.engine.get_template('index.html')
|
||||
|
||||
Reference in New Issue
Block a user