Internal Change

PiperOrigin-RevId: 660967144
pull/17767/head
Protobuf Team Bot 4 months ago committed by Copybara-Service
parent 479a80cf4b
commit 1f93cf8aaf
  1. 1
      conformance/text_format_failure_list_python_cpp.txt
  2. 1
      conformance/text_format_failure_list_python_upb.txt
  3. 1
      python/google/protobuf/internal/text_format_test.py
  4. 2
      python/google/protobuf/text_format.py

@ -70,3 +70,4 @@ Required.Proto3.TextFormatInput.StringLiteralBasicEscapesBytes.ProtobufOutput
Required.Proto3.TextFormatInput.StringLiteralBasicEscapesBytes.TextFormatOutput # Output was not equivalent to reference message: modified: optional_bytes: "\007\010\014\n\r\t\013?\\\'\"" -> "\007\010\014\n\r\t
Required.Proto3.TextFormatInput.StringLiteralBasicEscapesString.ProtobufOutput # Output was not equivalent to reference message: modified: optional_string: "\007\010\014\n\r\t\013?\\\'\"" -> "\007\010\014\n\r\
Required.Proto3.TextFormatInput.StringLiteralBasicEscapesString.TextFormatOutput # Output was not equivalent to reference message: modified: optional_string: "\007\010\014\n\r\t\013?\\\'\"" -> "\007\010\014\n\r\

@ -73,3 +73,4 @@ Required.Proto3.TextFormatInput.StringLiteralBasicEscapesBytes.ProtobufOutput
Required.Proto3.TextFormatInput.StringLiteralBasicEscapesBytes.TextFormatOutput # Output was not equivalent to reference message: modified: optional_bytes: "\007\010\014\n\r\t\013?\\\'\"" -> "\007\010\014\n\r\t
Required.Proto3.TextFormatInput.StringLiteralBasicEscapesString.ProtobufOutput # Output was not equivalent to reference message: modified: optional_string: "\007\010\014\n\r\t\013?\\\'\"" -> "\007\010\014\n\r\
Required.Proto3.TextFormatInput.StringLiteralBasicEscapesString.TextFormatOutput # Output was not equivalent to reference message: modified: optional_string: "\007\010\014\n\r\t\013?\\\'\"" -> "\007\010\014\n\r\

@ -2408,7 +2408,6 @@ class TokenizerTest(unittest.TestCase):
with self.assertRaises(text_format.ParseError):
text_format.Parse('NotGroupLikeScope { b:1 }', msg)
# Tests for pretty printer functionality.
@_parameterized.parameters((unittest_pb2), (unittest_proto3_arena_pb2))
class PrettyPrinterTest(TextFormatBase):

@ -1806,7 +1806,7 @@ def ParseFloat(text):
try:
return float(text.rstrip('f'))
except ValueError:
raise ValueError('Couldn\'t parse float: %s' % text)
raise ValueError("Couldn't parse float: %s" % text)
def ParseBool(text):

Loading…
Cancel
Save