diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-11 07:25:14 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-11 07:25:14 -0400 |
| commit | b67ab75e82ec59dd4eeca119eeaf570d7c88556c (patch) | |
| tree | 45bb072d08b4d7de7e6b76bf01fcd9bddcb43acd /tests/queries/tests.py | |
| parent | 695bc0d191c126a948a7cf3acc3e37d9377ebd20 (diff) | |
Fixed assorted flake8 errors.
Diffstat (limited to 'tests/queries/tests.py')
| -rw-r--r-- | tests/queries/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py index 6930f3093d..32ffc06dbb 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -1558,7 +1558,9 @@ class Queries5Tests(TestCase): # extra() qs = Ranking.objects.extra(select={'good': 'case when rank > 2 then 1 else 0 end'}) dicts = qs.values().order_by('id') - for d in dicts: del d['id']; del d['author_id'] + for d in dicts: + del d['id'] + del d['author_id'] self.assertEqual( [sorted(d.items()) for d in dicts], [[('good', 0), ('rank', 2)], [('good', 0), ('rank', 1)], [('good', 1), ('rank', 3)]] @@ -2668,7 +2670,7 @@ class NullJoinPromotionOrTest(TestCase): # problem here was that b__name generates a LOUTER JOIN, then # b__c__name generates join to c, which the ORM tried to promote but # failed as that join isn't nullable. - q_obj = ( + q_obj = ( Q(d__name='foo')| Q(b__name='foo')| Q(b__c__name='foo') |
