diff options
Diffstat (limited to 'python/google/protobuf/internal/test_util.py')
-rwxr-xr-x | python/google/protobuf/internal/test_util.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/google/protobuf/internal/test_util.py b/python/google/protobuf/internal/test_util.py index ac88fa81..539236b4 100755 --- a/python/google/protobuf/internal/test_util.py +++ b/python/google/protobuf/internal/test_util.py @@ -38,6 +38,13 @@ __author__ = 'robinson@google.com (Will Robinson)' import os.path +import sys +# PY2.6 compatible skipIf +if sys.version_info < (2, 7): + from unittest2 import skipIf +else: + from unittest import skipIf + from google.protobuf import unittest_import_pb2 from google.protobuf import unittest_pb2 from google.protobuf import descriptor_pb2 |