summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2017-11-15 21:13:29 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2017-11-15 21:14:40 +0100
commit3e7adb62bf2435ed82995a015705ddfa7d0f5a35 (patch)
tree09c482efdcc1d2d627afa5d1848c72fdebfaab0b
parent0b2eb44ca0b442bb72d806d78d9f65756a1bbb21 (diff)
downloaddjango-3e7adb62bf2435ed82995a015705ddfa7d0f5a35.tar.gz
[2.0.x] Skipped test_exact_sliced_queryset_limit_one_offset on Oracle.
This required slicing on subquery with equal operator. Thanks Tim Graham for the review.
-rw-r--r--tests/lookup/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lookup/tests.py b/tests/lookup/tests.py
index 0161782dbe..6279026185 100644
--- a/tests/lookup/tests.py
+++ b/tests/lookup/tests.py
@@ -2,6 +2,7 @@ import collections
from datetime import datetime
from math import ceil
from operator import attrgetter
+from unittest import skipIf
from django.core.exceptions import FieldError
from django.db import connection
@@ -854,6 +855,7 @@ class LookupTests(TestCase):
[self.a1, self.a2, self.a3, self.a4]
)
+ @skipIf(connection.vendor == 'oracle', "Oracle doesn't support sliced subqueries with equal operator until #28670")
def test_exact_sliced_queryset_limit_one_offset(self):
self.assertCountEqual(
Article.objects.filter(author=Author.objects.all()[1:2]),