aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/google/protobuf/internal/text_encoding_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/google/protobuf/internal/text_encoding_test.py')
-rwxr-xr-xpython/google/protobuf/internal/text_encoding_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/google/protobuf/internal/text_encoding_test.py b/python/google/protobuf/internal/text_encoding_test.py
index 9e7b9ce4..338a287b 100755
--- a/python/google/protobuf/internal/text_encoding_test.py
+++ b/python/google/protobuf/internal/text_encoding_test.py
@@ -32,7 +32,10 @@
"""Tests for google.protobuf.text_encoding."""
-import unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
from google.protobuf import text_encoding
TEST_VALUES = [