mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[py3] Removed longs.
This commit is contained in:
@@ -8,6 +8,7 @@ from django import forms
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.db import models
|
||||
from django.db.models.fields.files import FieldFile
|
||||
from django.utils import six
|
||||
from django.utils import unittest
|
||||
|
||||
from .models import (Foo, Bar, Whiz, BigD, BigS, Image, BigInt, Post,
|
||||
@@ -303,11 +304,11 @@ class BigIntegerFieldTests(test.TestCase):
|
||||
|
||||
def test_types(self):
|
||||
b = BigInt(value = 0)
|
||||
self.assertTrue(isinstance(b.value, (int, long)))
|
||||
self.assertTrue(isinstance(b.value, six.integer_types))
|
||||
b.save()
|
||||
self.assertTrue(isinstance(b.value, (int, long)))
|
||||
self.assertTrue(isinstance(b.value, six.integer_types))
|
||||
b = BigInt.objects.all()[0]
|
||||
self.assertTrue(isinstance(b.value, (int, long)))
|
||||
self.assertTrue(isinstance(b.value, six.integer_types))
|
||||
|
||||
def test_coercing(self):
|
||||
BigInt.objects.create(value ='10')
|
||||
|
||||
Reference in New Issue
Block a user