Author: lukeplant
Date: 2010-09-10 08:03:02 -0500 (Fri, 10 Sep 2010)
New Revision: 13705

Modified:
   django/trunk/django/core/cache/backends/filebased.py
Log:
Fixed #14250 - FileBasedCacheTests.test_cull test failure

This patch makes the cull behaviour (which files deleted and how many
deleted) deterministic.



Modified: django/trunk/django/core/cache/backends/filebased.py
===================================================================
--- django/trunk/django/core/cache/backends/filebased.py        2010-09-09 
23:43:01 UTC (rev 13704)
+++ django/trunk/django/core/cache/backends/filebased.py        2010-09-10 
13:03:02 UTC (rev 13705)
@@ -116,7 +116,7 @@
             return
 
         try:
-            filelist = os.listdir(self._dir)
+            filelist = sorted(os.listdir(self._dir))
         except (IOError, OSError):
             return
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to