mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
parent
18b3788401
commit
1d9596025e
1 changed files with 2 additions and 1 deletions
3
tests/cache/tests.py
vendored
3
tests/cache/tests.py
vendored
|
@ -1151,8 +1151,9 @@ class FileBasedCacheTests(BaseCacheTests, TestCase):
|
|||
cache_params.update({'LOCATION': self.dirname})
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.dirname)
|
||||
super(FileBasedCacheTests, self).tearDown()
|
||||
# Call parent first, as cache.clear() may recreate cache base directory
|
||||
shutil.rmtree(self.dirname)
|
||||
|
||||
def test_ignores_non_cache_files(self):
|
||||
fname = os.path.join(self.dirname, 'not-a-cache-file')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue