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__