diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2017-10-02 14:49:26 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-10-02 08:49:26 -0400 |
commit | d896809a3ae8dfe45864f284c3ef45bfbb2e5ba1 (patch) | |
tree | 295f2a149d8657e8988f81f5890aee2474f9ab6d /tests/delete | |
parent | f0ffa3f4ea277f9814285085fde20baff60fc386 (diff) | |
download | django-d896809a3ae8dfe45864f284c3ef45bfbb2e5ba1.tar.gz |
Refs #23919 -- Removed unneeded float()/int() calls.
Diffstat (limited to 'tests/delete')
-rw-r--r-- | tests/delete/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/delete/tests.py b/tests/delete/tests.py index 98467efb6a..b27181e963 100644 --- a/tests/delete/tests.py +++ b/tests/delete/tests.py @@ -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 |