summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/management/commands/custom_startproject.py2
-rw-r--r--tests/admin_scripts/tests.py4
2 files changed, 3 insertions, 3 deletions
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: