mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
This commit is contained in:
parent
f6acd1d271
commit
7b2f2e74ad
213 changed files with 574 additions and 763 deletions
|
@ -1,7 +1,6 @@
|
|||
import datetime
|
||||
|
||||
from django.test import TestCase, skipIfDBFeature
|
||||
from django.utils import six
|
||||
from django.utils.timezone import utc
|
||||
|
||||
from .models import Donut, RumBaba
|
||||
|
@ -75,7 +74,7 @@ class DataTypesTestCase(TestCase):
|
|||
database should be unicode."""
|
||||
d = Donut.objects.create(name='Jelly Donut', review='Outstanding')
|
||||
newd = Donut.objects.get(id=d.id)
|
||||
self.assertIsInstance(newd.review, six.text_type)
|
||||
self.assertIsInstance(newd.review, str)
|
||||
|
||||
@skipIfDBFeature('supports_timezones')
|
||||
def test_error_on_timezone(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue