mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
This commit is contained in:
parent
7b2f2e74ad
commit
2b281cc35e
180 changed files with 421 additions and 559 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue