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
|
@ -9,7 +9,6 @@ from django.db import connection, models
|
|||
from django.db.models import F, Max, Min, Q, Sum, Value
|
||||
from django.db.models.expressions import Case, When
|
||||
from django.test import TestCase
|
||||
from django.utils import six
|
||||
|
||||
from .models import CaseTestModel, Client, FKCaseTestModel, O2OCaseTestModel
|
||||
|
||||
|
@ -648,7 +647,7 @@ class CaseExpressionTests(TestCase):
|
|||
self.assertQuerysetEqual(
|
||||
CaseTestModel.objects.all().order_by('pk'),
|
||||
[(1, b'one'), (2, b'two'), (3, b''), (2, b'two'), (3, b''), (3, b''), (4, b'')],
|
||||
transform=lambda o: (o.integer, six.binary_type(o.binary))
|
||||
transform=lambda o: (o.integer, bytes(o.binary))
|
||||
)
|
||||
|
||||
def test_update_boolean(self):
|
||||
|
@ -757,7 +756,7 @@ class CaseExpressionTests(TestCase):
|
|||
self.assertQuerysetEqual(
|
||||
CaseTestModel.objects.all().order_by('pk'),
|
||||
[(1, '~/1'), (2, '~/2'), (3, ''), (2, '~/2'), (3, ''), (3, ''), (4, '')],
|
||||
transform=lambda o: (o.integer, six.text_type(o.file))
|
||||
transform=lambda o: (o.integer, str(o.file))
|
||||
)
|
||||
|
||||
def test_update_file_path(self):
|
||||
|
@ -798,7 +797,7 @@ class CaseExpressionTests(TestCase):
|
|||
self.assertQuerysetEqual(
|
||||
CaseTestModel.objects.all().order_by('pk'),
|
||||
[(1, '~/1'), (2, '~/2'), (3, ''), (2, '~/2'), (3, ''), (3, ''), (4, '')],
|
||||
transform=lambda o: (o.integer, six.text_type(o.image))
|
||||
transform=lambda o: (o.integer, str(o.image))
|
||||
)
|
||||
|
||||
def test_update_generic_ip_address(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue