1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #28860 -- Removed unnecessary len() calls.

This commit is contained in:
Дилян Палаузов
2017-11-29 11:54:34 -05:00
committed by Tim Graham
parent 3d94ee8500
commit d2afa5eb23
33 changed files with 56 additions and 55 deletions

View File

@@ -1164,7 +1164,7 @@ class AutodetectorTests(TestCase):
def test(from_state, to_state, msg):
changes = self.get_changes([from_state], [to_state])
if len(changes) > 0:
if changes:
ops = ', '.join(o.__class__.__name__ for o in changes['a'][0].operations)
self.fail('Created operation(s) %s from %s' % (ops, msg))