aboutsummaryrefslogtreecommitdiffhomepage
path: root/python
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2017-12-14 11:16:34 -0800
committerGravatar Jisi Liu <jisi.liu@gmail.com>2017-12-14 11:16:34 -0800
commit594ec2262c30cb1bd19fc43c2799cfeca31603ac (patch)
tree2ab24a66bae580c99bbe03e243b00b389df90fe4 /python
parent22e1cfd84ac2e7a6e0ee1101d75673c13a801c03 (diff)
Fix python descriptor test.
Diffstat (limited to 'python')
-rwxr-xr-xpython/google/protobuf/internal/descriptor_test.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/google/protobuf/internal/descriptor_test.py b/python/google/protobuf/internal/descriptor_test.py
index f1d5934e..02a43d15 100755
--- a/python/google/protobuf/internal/descriptor_test.py
+++ b/python/google/protobuf/internal/descriptor_test.py
@@ -742,6 +742,19 @@ class DescriptorCopyToProtoTest(unittest.TestCase):
deprecated: true
>
>
+ field {
+ name: "deprecated_int32_in_oneof"
+ number: 2
+ label: LABEL_OPTIONAL
+ type: TYPE_INT32
+ options {
+ deprecated: true
+ }
+ oneof_index: 0
+ }
+ oneof_decl {
+ name: "oneof_fields"
+ }
"""
self._InternalTestCopyToProto(