summaryrefslogtreecommitdiff
path: root/tests/timezones
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-07 12:11:46 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-18 21:33:28 +0100
commit2b281cc35ed9d997614ca3c416928d7fabfef1ad (patch)
treed3e73cf44b15139aa9f1f53e398942ba64f5e190 /tests/timezones
parent7b2f2e74adb36a4334e83130f6abc2f79d395235 (diff)
downloaddjango-2b281cc35ed9d997614ca3c416928d7fabfef1ad.tar.gz
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
Diffstat (limited to 'tests/timezones')
-rw-r--r--tests/timezones/tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py
index 7f7c8228e8..e5a67f745e 100644
--- a/tests/timezones/tests.py
+++ b/tests/timezones/tests.py
@@ -23,7 +23,7 @@ from django.test import (
)
from django.test.utils import requires_tz_support
from django.urls import reverse
-from django.utils import six, timezone
+from django.utils import timezone
from django.utils.timezone import timedelta
from .forms import (
@@ -888,8 +888,8 @@ class TemplateTests(SimpleTestCase):
}
}
- for k1, dt in six.iteritems(datetimes):
- for k2, tpl in six.iteritems(templates):
+ for k1, dt in datetimes.items():
+ for k2, tpl in templates.items():
ctx = Context({'dt': dt, 'ICT': ICT})
actual = tpl.render(ctx)
expected = results[k1][k2]
@@ -901,8 +901,8 @@ class TemplateTests(SimpleTestCase):
results['ict']['notag'] = t('ict', 'eat', 'utc', 'ict')
with self.settings(USE_TZ=False):
- for k1, dt in six.iteritems(datetimes):
- for k2, tpl in six.iteritems(templates):
+ for k1, dt in datetimes.items():
+ for k2, tpl in templates.items():
ctx = Context({'dt': dt, 'ICT': ICT})
actual = tpl.render(ctx)
expected = results[k1][k2]