Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 92b91d6e7b91a8d94b1e3b8d6d2059d57395c25d 1 parent 303bdc8
@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.