diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2018-08-08 17:00:41 -0700 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2018-08-08 17:00:41 -0700 |
commit | 6bbe197e9c1b6fc38cbdc45e3bf83fa7ced792a3 (patch) | |
tree | e575738adf52d24b883cca5e8928a5ded31caba1 /python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/text_format_test.py | |
parent | e7746f487cb9cca685ffb1b3d7dccc5554b618a4 (diff) | |
download | protobuf-6bbe197e9c1b6fc38cbdc45e3bf83fa7ced792a3.tar.gz protobuf-6bbe197e9c1b6fc38cbdc45e3bf83fa7ced792a3.tar.bz2 protobuf-6bbe197e9c1b6fc38cbdc45e3bf83fa7ced792a3.zip |
Down-integrate from google3.
Diffstat (limited to 'python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/text_format_test.py')
-rwxr-xr-x | python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/text_format_test.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/text_format_test.py b/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/text_format_test.py index 8267cd2c..bc53e256 100755 --- a/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/text_format_test.py +++ b/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/text_format_test.py @@ -410,7 +410,8 @@ class TextFormatTest(unittest.TestCase): text = 'optional_nested_enum: BARR' self.assertRaisesWithMessage( text_format.ParseError, - ('1:23 : Enum type "protobuf_unittest.TestAllTypes.NestedEnum" ' + ('1:23 : \'optional_nested_enum: BARR\': ' + 'Enum type "protobuf_unittest.TestAllTypes.NestedEnum" ' 'has no value named BARR.'), text_format.Merge, text, message) @@ -418,7 +419,8 @@ class TextFormatTest(unittest.TestCase): text = 'optional_nested_enum: 100' self.assertRaisesWithMessage( text_format.ParseError, - ('1:23 : Enum type "protobuf_unittest.TestAllTypes.NestedEnum" ' + ('1:23 : \'optional_nested_enum: 100\': ' + 'Enum type "protobuf_unittest.TestAllTypes.NestedEnum" ' 'has no value with number 100.'), text_format.Merge, text, message) @@ -427,7 +429,8 @@ class TextFormatTest(unittest.TestCase): text = 'optional_int32: bork' self.assertRaisesWithMessage( text_format.ParseError, - ('1:17 : Couldn\'t parse integer: bork'), + ('1:17 : \'optional_int32: bork\': ' + 'Couldn\'t parse integer: bork'), text_format.Merge, text, message) def testMergeStringFieldUnescape(self): |