Skip to content

Commit 4190118

Browse files
committed
Ignore timezone test case for Django 1.8, due to differing behavior.
1 parent bf7fcc4 commit 4190118

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_fields.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import uuid
66
from decimal import Decimal
77

8+
import django
89
import pytest
910
from django.http import QueryDict
1011
from django.test import TestCase, override_settings
@@ -1166,6 +1167,11 @@ class TestDateTimeField(FieldValues):
11661167
field = serializers.DateTimeField(default_timezone=utc)
11671168

11681169

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+
11691175
class TestCustomInputFormatDateTimeField(FieldValues):
11701176
"""
11711177
Valid and invalid values for `DateTimeField` with a custom input format.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy