Browse Source

Fix python descriptor test.

Jisi Liu 7 years ago
parent
commit
594ec2262c
1 changed files with 13 additions and 0 deletions
  1. 13 0
      python/google/protobuf/internal/descriptor_test.py

+ 13 - 0
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(