Skip to content

Commit 9150cd8

Browse files
committed
Skip setUpClass which is newly added in python2.7 for python2.6
1 parent d58df3b commit 9150cd8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/google/protobuf/internal/message_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,8 +1832,9 @@ def testUnpackedFields(self):
18321832
self.assertEqual(golden_data, message.SerializeToString())
18331833

18341834

1835-
@unittest.skipIf(api_implementation.Type() != 'cpp',
1836-
'explicit tests of the C++ implementation')
1835+
@unittest.skipIf(api_implementation.Type() != 'cpp' or
1836+
sys.version_info < (2, 7),
1837+
'explicit tests of the C++ implementation for PY27 and above')
18371838
class OversizeProtosTest(BaseTestCase):
18381839

18391840
@classmethod

0 commit comments

Comments
 (0)