We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7fcc4 commit 4190118Copy full SHA for 4190118
tests/test_fields.py
@@ -5,6 +5,7 @@
5
import uuid
6
from decimal import Decimal
7
8
+import django
9
import pytest
10
from django.http import QueryDict
11
from django.test import TestCase, override_settings
@@ -1166,6 +1167,11 @@ class TestDateTimeField(FieldValues):
1166
1167
field = serializers.DateTimeField(default_timezone=utc)
1168
1169
1170
+if django.VERSION[:2] <= (1, 8):
1171
+ # Doesn't raise an error on earlier versions of Django
1172
+ TestDateTimeField.invalid_inputs.pop('2018-08-16 22:00-24:00')
1173
+
1174
1175
class TestCustomInputFormatDateTimeField(FieldValues):
1176
"""
1177
Valid and invalid values for `DateTimeField` with a custom input format.
0 commit comments