Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews.
This commit is contained in:
Claude Paroz 2016-12-29 16:27:49 +01:00
parent f6acd1d271
commit 7b2f2e74ad
213 changed files with 574 additions and 763 deletions

View file

@ -2,7 +2,6 @@ from django.core import validators
from django.core.exceptions import ValidationError
from django.db import connection, models
from django.test import SimpleTestCase, TestCase
from django.utils import six
from .models import (
BigIntegerModel, IntegerModel, PositiveIntegerModel,
@ -121,11 +120,11 @@ class IntegerFieldTests(TestCase):
def test_types(self):
instance = self.model(value=0)
self.assertIsInstance(instance.value, six.integer_types)
self.assertIsInstance(instance.value, int)
instance.save()
self.assertIsInstance(instance.value, six.integer_types)
self.assertIsInstance(instance.value, int)
instance = self.model.objects.get()
self.assertIsInstance(instance.value, six.integer_types)
self.assertIsInstance(instance.value, int)
def test_coercing(self):
self.model.objects.create(value='10')