Skip to content

Commit

Permalink
Fixed #14250 - FileBasedCacheTests.test_cull test failure
Browse files Browse the repository at this point in the history
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
  • Loading branch information
spookylukey committed Sep 10, 2010
1 parent 303bdc8 commit 92b91d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/cache/backends/filebased.py
Expand Up @@ -116,7 +116,7 @@ def _cull(self):
return

try:
filelist = os.listdir(self._dir)
filelist = sorted(os.listdir(self._dir))
except (IOError, OSError):
return

Expand Down

0 comments on commit 92b91d6

Please sign in to comment.