mirror of
https://github.com/django/django.git
synced 2025-09-24 23:49:12 +00:00
[6.0.x] Added cleanup of cache clearing to DjangoFilePrefixesTests.setUp().
Backport of 7528979153355faa49c3e49ba3ea233f998a7583 from main.
This commit is contained in:
parent
115f05be75
commit
77ae09916d
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user