Skip to content

Commit

Permalink
Ignore timezone test case for Django 1.8, due to differing behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Jul 10, 2017
1 parent bf7fcc4 commit 4190118
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import uuid
from decimal import Decimal

import django
import pytest
from django.http import QueryDict
from django.test import TestCase, override_settings
Expand Down Expand Up @@ -1166,6 +1167,11 @@ class TestDateTimeField(FieldValues):
field = serializers.DateTimeField(default_timezone=utc)


if django.VERSION[:2] <= (1, 8):
# Doesn't raise an error on earlier versions of Django
TestDateTimeField.invalid_inputs.pop('2018-08-16 22:00-24:00')


class TestCustomInputFormatDateTimeField(FieldValues):
"""
Valid and invalid values for `DateTimeField` with a custom input format.
Expand Down

0 comments on commit 4190118

Please sign in to comment.