summaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
authorNobuaki Sukegawa <nsuke@apache.org>2016-01-03 14:24:39 +0900
committerNobuaki Sukegawa <nsuke@apache.org>2016-01-05 03:02:35 +0900
commit33744b0524b7248dda9e9e544420d69c33d3a3aa (patch)
treee5d520eaf0f5d90ce2d85204c9014296c692418d /test/py
parent1d8e745035354e67c794bec9e0b5663ee7cab902 (diff)
downloadthrift-33744b0524b7248dda9e9e544420d69c33d3a3aa.tar.gz
THRIFT-3515 Python 2.6 compatibility and test on CI
This closes #766
Diffstat (limited to 'test/py')
-rwxr-xr-xtest/py/SerializationTest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/py/SerializationTest.py b/test/py/SerializationTest.py
index 99e0393b4..d4755cf2a 100755
--- a/test/py/SerializationTest.py
+++ b/test/py/SerializationTest.py
@@ -24,6 +24,7 @@ from DebugProtoTest.ttypes import CompactProtoTestStruct, Empty
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TCompactProtocol, TJSONProtocol
from thrift.TSerialization import serialize, deserialize
+import sys
import unittest
@@ -258,6 +259,9 @@ class AbstractTest(unittest.TestCase):
self.assertTrue(len(rep) > 0)
def testIntegerLimits(self):
+ if (sys.version_info[0] == 2 and sys.version_info[1] <= 6):
+ print('Skipping testIntegerLimits for Python 2.6')
+ return
bad_values = [CompactProtoTestStruct(a_byte=128), CompactProtoTestStruct(a_byte=-129),
CompactProtoTestStruct(a_i16=32768), CompactProtoTestStruct(a_i16=-32769),
CompactProtoTestStruct(a_i32=2147483648), CompactProtoTestStruct(a_i32=-2147483649),