diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-09 13:19:34 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-09 14:24:06 -0500 |
| commit | a8b70d251d238b4e6cfc7bb4296da15494f8dff3 (patch) | |
| tree | 94ef5bc53e59131906aecfcf792eeac86242aa62 /tests/syndication_tests | |
| parent | eb406aa686ff1809903366ef6896037af2f1f69b (diff) | |
[1.8.x] Sorted imports with isort; refs #23860.
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
Diffstat (limited to 'tests/syndication_tests')
| -rw-r--r-- | tests/syndication_tests/tests.py | 12 | ||||
| -rw-r--r-- | tests/syndication_tests/urls.py | 1 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py index 221d4c112e..71b81dfbbb 100644 --- a/tests/syndication_tests/tests.py +++ b/tests/syndication_tests/tests.py @@ -3,21 +3,21 @@ 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/$', |
