diff options
author | jieluo@google.com <jieluo@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2014-08-13 21:05:19 +0000 |
---|---|---|
committer | jieluo@google.com <jieluo@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2014-08-13 21:05:19 +0000 |
commit | b70e586603c9e584bfb03bc31f6c298394197db6 (patch) | |
tree | 2e4f3a963a6ddd2b5b60aa06876e3e457b9102fb /python/google | |
parent | 7580a8929f9505bd52125d523729da4b1672a493 (diff) | |
download | protobuf-b70e586603c9e584bfb03bc31f6c298394197db6.tar.gz protobuf-b70e586603c9e584bfb03bc31f6c298394197db6.tar.bz2 protobuf-b70e586603c9e584bfb03bc31f6c298394197db6.zip |
put python cpp tests into pyext/
Diffstat (limited to 'python/google')
-rwxr-xr-x | python/google/protobuf/internal/reflection_test.py | 26 | ||||
-rw-r--r-- | python/google/protobuf/pyext/descriptor_cpp2_test.py (renamed from python/google/protobuf/internal/descriptor_cpp2_test.py) | 0 | ||||
-rw-r--r-- | python/google/protobuf/pyext/message_factory_cpp2_test.py (renamed from python/google/protobuf/internal/message_factory_cpp2_test.py) | 0 | ||||
-rwxr-xr-x | python/google/protobuf/pyext/reflection_cpp2_generated_test.py (renamed from python/google/protobuf/internal/reflection_cpp2_generated_test.py) | 0 |
4 files changed, 0 insertions, 26 deletions
diff --git a/python/google/protobuf/internal/reflection_test.py b/python/google/protobuf/internal/reflection_test.py index b3c414c7..78a880e8 100755 --- a/python/google/protobuf/internal/reflection_test.py +++ b/python/google/protobuf/internal/reflection_test.py @@ -1556,7 +1556,6 @@ class ReflectionTest(basetest.TestCase): def assertNotInitialized(self, proto): self.assertFalse(proto.IsInitialized()) - self.assertRaises(message.EncodeError, proto.SerializeToString) # "Partial" serialization doesn't care if message is uninitialized. proto.SerializePartialToString() @@ -2491,11 +2490,6 @@ class SerializationTest(basetest.TestCase): def testSerializeUninitialized(self): proto = unittest_pb2.TestRequired() - self._CheckRaises( - message.EncodeError, - proto.SerializeToString, - 'Message protobuf_unittest.TestRequired is missing required fields: ' - 'a,b,c') # Shouldn't raise exceptions. partial = proto.SerializePartialToString() @@ -2506,18 +2500,10 @@ class SerializationTest(basetest.TestCase): self.assertFalse(proto2.HasField('a')) proto.a = 1 - self._CheckRaises( - message.EncodeError, - proto.SerializeToString, - 'Message protobuf_unittest.TestRequired is missing required fields: b,c') # Shouldn't raise exceptions. partial = proto.SerializePartialToString() proto.b = 2 - self._CheckRaises( - message.EncodeError, - proto.SerializeToString, - 'Message protobuf_unittest.TestRequired is missing required fields: c') # Shouldn't raise exceptions. partial = proto.SerializePartialToString() @@ -2547,12 +2533,6 @@ class SerializationTest(basetest.TestCase): proto.SerializeToString() proto.optional_message.a = 1 - self._CheckRaises( - message.EncodeError, - proto.SerializeToString, - 'Message protobuf_unittest.TestRequiredForeign ' - 'is missing required fields: ' - 'optional_message.b,optional_message.c') proto.optional_message.b = 2 proto.optional_message.c = 3 @@ -2560,12 +2540,6 @@ class SerializationTest(basetest.TestCase): proto.repeated_message.add().a = 1 proto.repeated_message.add().b = 2 - self._CheckRaises( - message.EncodeError, - proto.SerializeToString, - 'Message protobuf_unittest.TestRequiredForeign is missing required fields: ' - 'repeated_message[0].b,repeated_message[0].c,' - 'repeated_message[1].a,repeated_message[1].c') proto.repeated_message[0].b = 2 proto.repeated_message[0].c = 3 diff --git a/python/google/protobuf/internal/descriptor_cpp2_test.py b/python/google/protobuf/pyext/descriptor_cpp2_test.py index 3a3ff298..3a3ff298 100644 --- a/python/google/protobuf/internal/descriptor_cpp2_test.py +++ b/python/google/protobuf/pyext/descriptor_cpp2_test.py diff --git a/python/google/protobuf/internal/message_factory_cpp2_test.py b/python/google/protobuf/pyext/message_factory_cpp2_test.py index fb52e1b1..fb52e1b1 100644 --- a/python/google/protobuf/internal/message_factory_cpp2_test.py +++ b/python/google/protobuf/pyext/message_factory_cpp2_test.py diff --git a/python/google/protobuf/internal/reflection_cpp2_generated_test.py b/python/google/protobuf/pyext/reflection_cpp2_generated_test.py index d7fce5fa..d7fce5fa 100755 --- a/python/google/protobuf/internal/reflection_cpp2_generated_test.py +++ b/python/google/protobuf/pyext/reflection_cpp2_generated_test.py |