[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.
This commit is contained in:
Mariusz Felisiak 2017-11-15 21:13:29 +01:00
parent 0b2eb44ca0
commit 3e7adb62bf
No known key found for this signature in database
GPG Key ID: 2EF56372BA48CD1B
1 changed files with 2 additions and 0 deletions

View File

@ -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]),