浏览代码

Fix python descriptor test.

Jisi Liu 7 年之前
父节点
当前提交
594ec2262c
共有 1 个文件被更改,包括 13 次插入0 次删除
  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(