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 10:23:13 +0200
commit77ae09916d944d5f3e4cea29f4dc3fe9eee5de27 (patch)
tree46f461112e00d556ee8a4b1a405f5c65935dc388 /tests
parent115f05be756f332c4969df0fb49a6685fd4cb727 (diff)
[6.0.x] Added cleanup of cache clearing to DjangoFilePrefixesTests.setUp().
Backport of 7528979153355faa49c3e49ba3ea233f998a7583 from main.
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__