aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJisi Liu <jisi.liu@gmail.com>2016-03-31 15:26:22 -0700
committerJisi Liu <jisi.liu@gmail.com>2016-03-31 15:26:22 -0700
commit012ac9a0a6d025d3fd874414e8646ead0812aa7a (patch)
treef5a26dbf037983c75d8645b0f3f10beb8f3db832 /python
parentbc1f2e7e6e416aa3428817dd3e43e531e81b399d (diff)
downloadprotobuf-012ac9a0a6d025d3fd874414e8646ead0812aa7a.tar.gz
protobuf-012ac9a0a6d025d3fd874414e8646ead0812aa7a.tar.bz2
protobuf-012ac9a0a6d025d3fd874414e8646ead0812aa7a.zip
revert unexpected change for py26
Diffstat (limited to 'python')
-rw-r--r--python/google/protobuf/internal/proto_builder_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/google/protobuf/internal/proto_builder_test.py b/python/google/protobuf/internal/proto_builder_test.py
index 880b570d..822ad895 100644
--- a/python/google/protobuf/internal/proto_builder_test.py
+++ b/python/google/protobuf/internal/proto_builder_test.py
@@ -36,7 +36,10 @@ try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict #PY26
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
from google.protobuf import descriptor_pb2
from google.protobuf import descriptor_pool
from google.protobuf import proto_builder