summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-09-18 16:27:11 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-09-19 09:49:03 +0200
commit7528979153355faa49c3e49ba3ea233f998a7583 (patch)
treef6598d68a8a2bc6251ec3510da01f7434fb4af6c /tests
parent5ddb01c76038278187d6b892a8bf38e4cc25ac2e (diff)
Added cleanup of cache clearing to DjangoFilePrefixesTests.setUp().
Diffstat (limited to 'tests')
-rw-r--r--tests/deprecation/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/deprecation/tests.py b/tests/deprecation/tests.py
index 3d384b38b7..2df9cc6fa2 100644
--- a/tests/deprecation/tests.py
+++ b/tests/deprecation/tests.py
@@ -13,6 +13,7 @@ from django.utils.deprecation import (
class DjangoFilePrefixesTests(SimpleTestCase):
def setUp(self):
django_file_prefixes.cache_clear()
+ self.addCleanup(django_file_prefixes.cache_clear)
def test_no_file(self):
orig_file = django.__file__