mirror of
https://github.com/django/django.git
synced 2025-09-24 23:49:12 +00:00
Added cleanup of cache clearing to DjangoFilePrefixesTests.setUp().
This commit is contained in:
parent
5ddb01c760
commit
7528979153
@ -13,6 +13,7 @@ from django.utils.deprecation import (
|
|||||||
class DjangoFilePrefixesTests(SimpleTestCase):
|
class DjangoFilePrefixesTests(SimpleTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
django_file_prefixes.cache_clear()
|
django_file_prefixes.cache_clear()
|
||||||
|
self.addCleanup(django_file_prefixes.cache_clear)
|
||||||
|
|
||||||
def test_no_file(self):
|
def test_no_file(self):
|
||||||
orig_file = django.__file__
|
orig_file = django.__file__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user