Skip to content

Commit d4f434c

Browse files
committed
Gate window function test to Django 4.2+
1 parent 0f58135 commit d4f434c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_django.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from unittest import SkipTest
22

3+
import django
34
from django.db import OperationalError, ProgrammingError
45
from django.db.models import Window
56
from django.db.models.functions import Rank
@@ -54,6 +55,8 @@ def test_union_with_first(self):
5455
class WindowFunctions(TestCase):
5556

5657
def test_heterogeneous_filter_in_cte(self):
58+
if django.VERSION < (4, 2):
59+
raise SkipTest("feature added in Django 4.2")
5760
from django_cte import With
5861
cte = With(
5962
Order.objects.annotate(

0 commit comments

Comments
 (0)