aboutsummaryrefslogtreecommitdiff
path: root/python/google/protobuf/internal/unknown_fields_test.py
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2014-10-07 17:44:33 -0700
committerFeng Xiao <xfxyjwf@gmail.com>2014-10-07 17:44:48 -0700
commit0971bb0d57aa6f2db1abee4008b365d52b402891 (patch)
treec7408b9bd878da51d232da03f9d5c1b2e5be32b9 /python/google/protobuf/internal/unknown_fields_test.py
parentc1d16457dbf5f1b0770db406b75b4b2063556cc3 (diff)
downloadprotobuf-0971bb0d57aa6f2db1abee4008b365d52b402891.tar.gz
protobuf-0971bb0d57aa6f2db1abee4008b365d52b402891.tar.bz2
protobuf-0971bb0d57aa6f2db1abee4008b365d52b402891.zip
Down-integrate from internal branch.
Diffstat (limited to 'python/google/protobuf/internal/unknown_fields_test.py')
-rwxr-xr-xpython/google/protobuf/internal/unknown_fields_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/google/protobuf/internal/unknown_fields_test.py b/python/google/protobuf/internal/unknown_fields_test.py
index 3272460b..71775609 100755
--- a/python/google/protobuf/internal/unknown_fields_test.py
+++ b/python/google/protobuf/internal/unknown_fields_test.py
@@ -62,7 +62,7 @@ class UnknownFieldsTest(basetest.TestCase):
result_dict = {}
for tag_bytes, value in self.unknown_fields:
if tag_bytes == field_tag:
- decoder = unittest_pb2.TestAllTypes._decoders_by_tag[tag_bytes]
+ decoder = unittest_pb2.TestAllTypes._decoders_by_tag[tag_bytes][0]
decoder(value, 0, len(value), self.all_fields, result_dict)
return result_dict[field_descriptor]
@@ -204,7 +204,7 @@ class UnknownFieldsTest(basetest.TestCase):
for tag_bytes, value in self.unknown_fields:
if tag_bytes == field_tag:
decoder = missing_enum_values_pb2.TestEnumValues._decoders_by_tag[
- tag_bytes]
+ tag_bytes][0]
decoder(value, 0, len(value), self.message, result_dict)
return result_dict[field_descriptor]