summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorДилян Палаузов <Dilyan.Palauzov@db.com>2017-11-29 11:54:34 -0500
committerTim Graham <timograham@gmail.com>2017-12-04 10:35:23 -0500
commitd2afa5eb2308e672b6313876856e32e2561b90f3 (patch)
tree2b0700e6502222aca614a29497c327640adf2d64 /tests
parent3d94ee85005ff658f9419269a6719cbbf7903dab (diff)
Fixed #28860 -- Removed unnecessary len() calls.
Diffstat (limited to 'tests')
-rw-r--r--tests/migrations/test_autodetector.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/migrations/test_autodetector.py b/tests/migrations/test_autodetector.py
index 95aeec57aa..a111b8f70d 100644
--- a/tests/migrations/test_autodetector.py
+++ b/tests/migrations/test_autodetector.py
@@ -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))