diff options
| author | Дилян Палаузов <Dilyan.Palauzov@db.com> | 2017-11-29 11:54:34 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-12-04 10:35:23 -0500 |
| commit | d2afa5eb2308e672b6313876856e32e2561b90f3 (patch) | |
| tree | 2b0700e6502222aca614a29497c327640adf2d64 /tests | |
| parent | 3d94ee85005ff658f9419269a6719cbbf7903dab (diff) | |
Fixed #28860 -- Removed unnecessary len() calls.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrations/test_autodetector.py | 2 |
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)) |
