diff --git a/tests/test_filter.py b/tests/test_filter.py index 204a034..83d5b49 100644 --- a/tests/test_filter.py +++ b/tests/test_filter.py @@ -1,3 +1,6 @@ +import pytest + +from django import VERSION from django.forms.models import formset_factory from django.template import Context, Template from django.test import SimpleTestCase @@ -8,6 +11,7 @@ class CrispyFilterTests(SimpleTestCase): maxDiff = None + @pytest.mark.skipif(VERSION < (4, 1), reason="Different html output on Django 3.2 for labels on datetime fields.") def test_crispy_filter(self): template = Template( """ @@ -70,7 +74,7 @@ def test_crispy_filter(self): """
-