summaryrefslogtreecommitdiff
path: root/tests/datetimes
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-10-07 21:06:49 -0400
committerTim Graham <timograham@gmail.com>2016-10-27 08:53:20 -0400
commit414ad25b090a63eaaf297b1164c8f7d814a710a2 (patch)
treee3d0e6fdffee0793baad41a339c2d63db742c33a /tests/datetimes
parentd84ffcc22b2a0dbc0a44a67d56da7e3647e2f87a (diff)
downloaddjango-414ad25b090a63eaaf297b1164c8f7d814a710a2.tar.gz
Fixed #27327 -- Simplified time zone handling by requiring pytz.
Diffstat (limited to 'tests/datetimes')
-rw-r--r--tests/datetimes/tests.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/datetimes/tests.py b/tests/datetimes/tests.py
index efef456c43..273333e61c 100644
--- a/tests/datetimes/tests.py
+++ b/tests/datetimes/tests.py
@@ -1,18 +1,12 @@
from __future__ import unicode_literals
import datetime
-from unittest import skipIf
from django.test import TestCase, override_settings
from django.utils import timezone
from .models import Article, Category, Comment
-try:
- import pytz
-except ImportError:
- pytz = None
-
class DateTimesTests(TestCase):
def test_related_model_traverse(self):
@@ -84,7 +78,6 @@ class DateTimesTests(TestCase):
],
)
- @skipIf(pytz is None, "this test requires pytz")
@override_settings(USE_TZ=True)
def test_21432(self):
now = timezone.localtime(timezone.now().replace(microsecond=0))