diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2015-12-21 13:43:13 -0800 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2015-12-21 13:43:13 -0800 |
commit | a0b8fd52b94c4038c3ed7fb68f8ace57d5647e10 (patch) | |
tree | 047a5ba8e7f4b370ee94305d9063a74c4856ee36 /python/google | |
parent | 8675989bf750abb15ef00fc28fec1f1ca49eb1c1 (diff) | |
download | protobuf-a0b8fd52b94c4038c3ed7fb68f8ace57d5647e10.tar.gz protobuf-a0b8fd52b94c4038c3ed7fb68f8ace57d5647e10.tar.bz2 protobuf-a0b8fd52b94c4038c3ed7fb68f8ace57d5647e10.zip |
Fix Python 2.6 test failures.
Change-Id: Ia9e2795b1ff1abb30410ffb3ef96ba6f46dd99d0
Diffstat (limited to 'python/google')
-rw-r--r-- | python/google/protobuf/internal/well_known_types_test.py | 6 |
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 |