Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Jun 29, 2023
1 parent c9c2597 commit 5fef442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/django_marina/test/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.test.runner import DiscoverRunner


class TempMediaMixin(object):
class TempMediaMixin:
"""
Mixin to create MEDIA_ROOT in temporary directory and tear down when complete.
Expand All @@ -23,7 +23,7 @@ def setup_test_environment(self):

def teardown_test_environment(self):
"""Delete temp storage."""
super(TempMediaMixin, self).teardown_test_environment()
super().teardown_test_environment()
shutil.rmtree(self._temp_media, ignore_errors=True)
settings.MEDIA_ROOT = settings._original_media_root
del settings._original_media_root
Expand Down

0 comments on commit 5fef442

Please sign in to comment.