From d6eaf7c0183cd04b78f2a55e1d60bb7e59598310 Mon Sep 17 00:00:00 2001 From: chillaranand Date: Sat, 21 Jan 2017 18:43:44 +0530 Subject: Refs #23919 -- Replaced super(ClassName, self) with super(). --- tests/admin_scripts/management/commands/custom_startproject.py | 2 +- tests/admin_scripts/tests.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/admin_scripts') diff --git a/tests/admin_scripts/management/commands/custom_startproject.py b/tests/admin_scripts/management/commands/custom_startproject.py index 3fa19d98cc..b258e4b80d 100644 --- a/tests/admin_scripts/management/commands/custom_startproject.py +++ b/tests/admin_scripts/management/commands/custom_startproject.py @@ -3,5 +3,5 @@ from django.core.management.commands.startproject import Command as BaseCommand class Command(BaseCommand): def add_arguments(self, parser): - super(Command, self).add_arguments(parser) + super().add_arguments(parser) parser.add_argument('--extra', help='An arbitrary extra value passed to the context') diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 88a0260358..ad7d9ef742 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -38,7 +38,7 @@ class AdminScriptTestCase(unittest.TestCase): @classmethod def setUpClass(cls): - super(AdminScriptTestCase, cls).setUpClass() + super().setUpClass() cls.test_dir = os.path.realpath(os.path.join( tempfile.gettempdir(), cls.__name__, @@ -52,7 +52,7 @@ class AdminScriptTestCase(unittest.TestCase): @classmethod def tearDownClass(cls): shutil.rmtree(cls.test_dir) - super(AdminScriptTestCase, cls).tearDownClass() + super().tearDownClass() def write_settings(self, filename, apps=None, is_dir=False, sdict=None, extra=None): if is_dir: -- cgit v1.3