aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/google/protobuf/internal/message_test.py
diff options
context:
space:
mode:
authorGravatar Josh Haberman <jhaberman@gmail.com>2015-02-25 20:17:32 -0800
committerGravatar Josh Haberman <jhaberman@gmail.com>2015-02-25 20:17:32 -0800
commit0b70a43736fe070bee49141d493c74079ea68f97 (patch)
tree678b53cbc408c7520d893a8e0f705103c9f05608 /python/google/protobuf/internal/message_test.py
parentada65567852b96fdb4d070c0c3f86ca7b77824f9 (diff)
Fixes for Python/C++ implementation in open-source:
* Rosy hack doesn't apply (that test should be removed for the open-source release). * Added our own copy of parameterized.py (the open-source version of Google Apputils doesn't contain it). * The C++ Descriptor object didn't implement extension_ranges. * Had to implement a hack around returning EncodeError, to work around the module-loading behavior of the test runner.
Diffstat (limited to 'python/google/protobuf/internal/message_test.py')
-rwxr-xr-xpython/google/protobuf/internal/message_test.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/google/protobuf/internal/message_test.py b/python/google/protobuf/internal/message_test.py
index 7ab814cf..4d4de510 100755
--- a/python/google/protobuf/internal/message_test.py
+++ b/python/google/protobuf/internal/message_test.py
@@ -51,10 +51,10 @@ import sys
import unittest
from google.apputils import basetest
-from google.apputils.pybase import parameterized
from google.protobuf import unittest_pb2
from google.protobuf import unittest_proto3_arena_pb2
from google.protobuf.internal import api_implementation
+from google.protobuf.internal import _parameterized
from google.protobuf.internal import test_util
from google.protobuf import message
@@ -72,7 +72,7 @@ def IsNegInf(val):
return isinf(val) and (val < 0)
-@parameterized.Parameters(
+@_parameterized.Parameters(
(unittest_pb2),
(unittest_proto3_arena_pb2))
class MessageTest(basetest.TestCase):
@@ -982,7 +982,6 @@ class Proto2Test(basetest.TestCase):
# This is still an incomplete proto - so serializing should fail
self.assertRaises(message.EncodeError, unpickled_message.SerializeToString)
-
# TODO(haberman): this isn't really a proto2-specific test except that this
# message has a required field in it. Should probably be factored out so
# that we can test the other parts with proto3.