mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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
|
@ -4,7 +4,6 @@ from django.core.exceptions import FieldError, ValidationError
|
|||
from django.db import connection, models
|
||||
from django.test import SimpleTestCase, TestCase
|
||||
from django.test.utils import CaptureQueriesContext, isolate_apps
|
||||
from django.utils import six
|
||||
|
||||
from .models import (
|
||||
Base, Chef, CommonInfo, GrandChild, GrandParent, ItalianRestaurant,
|
||||
|
@ -25,8 +24,8 @@ class ModelInheritanceTests(TestCase):
|
|||
|
||||
s = Student.objects.create(name="Pebbles", age=5, school_class="1B")
|
||||
|
||||
self.assertEqual(six.text_type(w1), "Worker Fred")
|
||||
self.assertEqual(six.text_type(s), "Student Pebbles")
|
||||
self.assertEqual(str(w1), "Worker Fred")
|
||||
self.assertEqual(str(s), "Student Pebbles")
|
||||
|
||||
# The children inherit the Meta class of their parents (if they don't
|
||||
# specify their own).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue