aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/google/protobuf/internal
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2015-12-21 13:43:13 -0800
committerGravatar Feng Xiao <xfxyjwf@gmail.com>2015-12-21 13:43:13 -0800
commita0b8fd52b94c4038c3ed7fb68f8ace57d5647e10 (patch)
tree047a5ba8e7f4b370ee94305d9063a74c4856ee36 /python/google/protobuf/internal
parent8675989bf750abb15ef00fc28fec1f1ca49eb1c1 (diff)
Fix Python 2.6 test failures.
Change-Id: Ia9e2795b1ff1abb30410ffb3ef96ba6f46dd99d0
Diffstat (limited to 'python/google/protobuf/internal')
-rw-r--r--python/google/protobuf/internal/well_known_types_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/google/protobuf/internal/well_known_types_test.py b/python/google/protobuf/internal/well_known_types_test.py
index 60b0c47d..0e31e6f8 100644
--- a/python/google/protobuf/internal/well_known_types_test.py
+++ b/python/google/protobuf/internal/well_known_types_test.py
@@ -36,10 +36,14 @@ __author__ = 'jieluo@google.com (Jie Luo)'
from datetime import datetime
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
+
from google.protobuf import duration_pb2
from google.protobuf import field_mask_pb2
from google.protobuf import timestamp_pb2
-import unittest
from google.protobuf import unittest_pb2
from google.protobuf.internal import test_util
from google.protobuf.internal import well_known_types