diff options
Diffstat (limited to 'tests/syndication_tests')
-rw-r--r-- | tests/syndication_tests/tests.py | 11 | ||||
-rw-r--r-- | tests/syndication_tests/urls.py | 1 |
2 files changed, 5 insertions, 7 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() diff --git a/tests/syndication_tests/urls.py b/tests/syndication_tests/urls.py index f92896f308..d3caeae888 100644 --- a/tests/syndication_tests/urls.py +++ b/tests/syndication_tests/urls.py @@ -2,7 +2,6 @@ from django.conf.urls import url from . import feeds - urlpatterns = [ url(r'^syndication/rss2/$', feeds.TestRss2Feed()), url(r'^syndication/rss2/guid_ispermalink_true/$', |