Added the six module to test int/long support

This commit is contained in:
Konstantin Gukov
2016-03-06 16:10:02 +05:00
committed by Konstantin Gukov
parent fed58f3920
commit 66b233eaea
4 changed files with 12 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
import sys
import six
from nose.plugins.skip import SkipTest
sys.path[0:0] = [""]
@@ -420,8 +422,9 @@ class FieldTest(unittest.TestCase):
big_person = BigPerson()
big_person.height = 1L
big_person.validate()
for value, value_type in enumerate(six.integer_types):
big_person.height = value_type(value)
big_person.validate()
big_person.height = 2 ** 500
big_person.validate()