Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
  • Loading branch information...
commit 6e1c46dab96395b437f77ee0c39deffa47042408 1 parent 6ea9025
@spookylukey spookylukey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/cache/backends/filebased.py
View
2  django/core/cache/backends/filebased.py
@@ -116,7 +116,7 @@ def _cull(self):
return
try:
- filelist = os.listdir(self._dir)
+ filelist = sorted(os.listdir(self._dir))
except (IOError, OSError):
return
Please sign in to comment.
Something went wrong with that request. Please try again.