diff options
author | Tim Graham <timograham@gmail.com> | 2017-10-03 10:42:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-03 10:42:18 -0400 |
commit | 27193aea0088b238e3ee0f0f235364a34a09265c (patch) | |
tree | 2740bfcd9a42f2ccdd2dad095a69b4f1f3751d2a /tests/expressions_case | |
parent | 51d230e00b9d10378ccd9259e577e92317c82d75 (diff) | |
download | django-27193aea0088b238e3ee0f0f235364a34a09265c.tar.gz |
Fixed #28584 -- Dropped support for SQLite < 3.7.15.
Diffstat (limited to 'tests/expressions_case')
-rw-r--r-- | tests/expressions_case/tests.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/expressions_case/tests.py b/tests/expressions_case/tests.py index 090607e8b8..16c8a3d546 100644 --- a/tests/expressions_case/tests.py +++ b/tests/expressions_case/tests.py @@ -5,7 +5,7 @@ from operator import attrgetter, itemgetter from uuid import UUID from django.core.exceptions import FieldError -from django.db import connection, models +from django.db import models from django.db.models import F, Max, Min, Q, Sum, Value from django.db.models.expressions import Case, When from django.test import TestCase @@ -296,12 +296,6 @@ class CaseExpressionTests(TestCase): transform=attrgetter('integer', 'test') ) - if connection.vendor == 'sqlite' and connection.Database.sqlite_version_info < (3, 7, 0): - # There is a bug in sqlite < 3.7.0, where placeholder order is lost. - # Thus, the above query returns <condition_value> + <result_value> - # for each matching case instead of <result_value> + 1 (#24148). - test_combined_expression = unittest.expectedFailure(test_combined_expression) - def test_in_subquery(self): self.assertQuerysetEqual( CaseTestModel.objects.filter( |