summaryrefslogtreecommitdiff
path: root/tests/syndication_tests/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/syndication_tests/tests.py')
-rw-r--r--tests/syndication_tests/tests.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py
index 63638fa589..6e08d719d4 100644
--- a/tests/syndication_tests/tests.py
+++ b/tests/syndication_tests/tests.py
@@ -3,21 +3,20 @@ from __future__ import unicode_literals
import datetime
from xml.dom import minidom
-try:
- import pytz
-except ImportError:
- pytz = None
-
from django.contrib.sites.models import Site
from django.contrib.syndication import views
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase, override_settings
from django.test.utils import requires_tz_support
-from django.utils.feedgenerator import rfc2822_date, rfc3339_date
from django.utils import timezone
+from django.utils.feedgenerator import rfc2822_date, rfc3339_date
from .models import Entry
+try:
+ import pytz
+except ImportError:
+ pytz = None
TZ = timezone.get_default_timezone()