summaryrefslogtreecommitdiff
path: root/tests/regressiontests/model_fields
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-07-20 12:45:19 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-07-22 09:29:53 +0200
commit56dbe924a6e700cefbfd34f1a5aa6c1ee01478dc (patch)
treedb6519ad2cb48518c61d9b0c74bcc7b2a5b453fa /tests/regressiontests/model_fields
parentf1d5dc81ac37fe9a7c7ca860900ee6a16150bb09 (diff)
[py3] Removed longs.
Diffstat (limited to 'tests/regressiontests/model_fields')
-rw-r--r--tests/regressiontests/model_fields/tests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/regressiontests/model_fields/tests.py b/tests/regressiontests/model_fields/tests.py
index b94c4696f9..e86159463d 100644
--- a/tests/regressiontests/model_fields/tests.py
+++ b/tests/regressiontests/model_fields/tests.py
@@ -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')