Fixed #14250 - FileBasedCacheTests.test_cull test failure
This patch makes the cull behaviour (which files deleted and how many deleted) deterministic. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
303bdc85a7
commit
92b91d6e7b
|
@ -116,7 +116,7 @@ class CacheClass(BaseCache):
|
|||
return
|
||||
|
||||
try:
|
||||
filelist = os.listdir(self._dir)
|
||||
filelist = sorted(os.listdir(self._dir))
|
||||
except (IOError, OSError):
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue