Skip setUpClass which is newly added in python2.7 for python2.6

This commit is contained in:
Jie Luo 2017-08-04 10:50:24 -07:00
parent d58df3b902
commit 9150cd8603

View File

@ -1832,8 +1832,9 @@ class PackedFieldTest(BaseTestCase):
self.assertEqual(golden_data, message.SerializeToString()) self.assertEqual(golden_data, message.SerializeToString())
@unittest.skipIf(api_implementation.Type() != 'cpp', @unittest.skipIf(api_implementation.Type() != 'cpp' or
'explicit tests of the C++ implementation') sys.version_info < (2, 7),
'explicit tests of the C++ implementation for PY27 and above')
class OversizeProtosTest(BaseTestCase): class OversizeProtosTest(BaseTestCase):
@classmethod @classmethod