[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:
Luke Plant 2010-09-10 13:09:19 +00:00
parent 6ea90256d7
commit 6e1c46dab9
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class CacheClass(BaseCache):
return
try:
filelist = os.listdir(self._dir)
filelist = sorted(os.listdir(self._dir))
except (IOError, OSError):
return