[py3] Fixed cache tests.

This commit is contained in:
Aymeric Augustin 2012-08-18 11:15:05 +02:00
parent f34de7dd6e
commit 2284419a2c
1 changed files with 1 additions and 1 deletions

View File

@ -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])