Refs #23919 -- Removed unneeded float()/int() calls.

This commit is contained in:
Mariusz Felisiak 2017-10-02 14:49:26 +02:00 committed by Tim Graham
parent f0ffa3f4ea
commit d896809a3a
5 changed files with 5 additions and 5 deletions

View file

@ -325,7 +325,7 @@ class DeletionTests(TestCase):
# Calculate the number of queries needed.
batch_size = connection.ops.bulk_batch_size(['pk'], objs)
# The related fetches are done in batches.
batches = int(ceil(float(len(objs)) / batch_size))
batches = ceil(len(objs) / batch_size)
# One query for Avatar.objects.all() and then one related fast delete for
# each batch.
fetches_to_mem = 1 + batches