Index: third_party/protobuf/python/google/protobuf/internal/descriptor_test.py |
diff --git a/third_party/protobuf/python/google/protobuf/internal/descriptor_test.py b/third_party/protobuf/python/google/protobuf/internal/descriptor_test.py |
index fee09a5627f231d63a7815ca25ddaff7ec3a3aef..b8e75553358f5d72191cf30cf4ef9f9b04421431 100755 |
--- a/third_party/protobuf/python/google/protobuf/internal/descriptor_test.py |
+++ b/third_party/protobuf/python/google/protobuf/internal/descriptor_test.py |
@@ -37,9 +37,10 @@ __author__ = 'robinson@google.com (Will Robinson)' |
import sys |
try: |
- import unittest2 as unittest |
+ import unittest2 as unittest #PY26 |
except ImportError: |
import unittest |
+ |
from google.protobuf import unittest_custom_options_pb2 |
from google.protobuf import unittest_import_pb2 |
from google.protobuf import unittest_pb2 |
@@ -596,7 +597,7 @@ class DescriptorCopyToProtoTest(unittest.TestCase): |
""" |
self._InternalTestCopyToProto( |
- unittest_pb2._FOREIGNENUM, |
+ unittest_pb2.ForeignEnum.DESCRIPTOR, |
descriptor_pb2.EnumDescriptorProto, |
TEST_FOREIGN_ENUM_ASCII) |