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