From 2284419a2c7b5da643e53754e3bf82637b52017b Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 18 Aug 2012 11:15:05 +0200 Subject: [PATCH] [py3] Fixed cache tests. --- django/core/cache/backends/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/cache/backends/db.py b/django/core/cache/backends/db.py index 0e25941e87..52db4d1b1d 100644 --- a/django/core/cache/backends/db.py +++ b/django/core/cache/backends/db.py @@ -167,7 +167,7 @@ class DatabaseCache(BaseDatabaseCache): cursor.execute("SELECT COUNT(*) FROM %s" % table) num = cursor.fetchone()[0] if num > self._max_entries: - cull_num = num / self._cull_frequency + cull_num = num // self._cull_frequency cursor.execute( connections[db].ops.cache_key_culling_sql() % table, [cull_num])