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:
committed by
Tim Graham
parent
3d94ee8500
commit
d2afa5eb23
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user