From 6c081a7581e34d2f46cb9a6484eb88b5ba62f03f Mon Sep 17 00:00:00 2001 From: Jie Luo Date: Fri, 13 Oct 2023 15:20:44 -0700 Subject: [PATCH] internal change for protobuf PiperOrigin-RevId: 573332204 --- pybind11_protobuf/tests/message_test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pybind11_protobuf/tests/message_test.py b/pybind11_protobuf/tests/message_test.py index 033f879..a92caea 100644 --- a/pybind11_protobuf/tests/message_test.py +++ b/pybind11_protobuf/tests/message_test.py @@ -436,11 +436,15 @@ def test_text_format_to_string(self): def test_text_format_parse(self): message = text_format.Parse(m.TEXT_FORMAT_MESSAGE, m.make_test_message()) - self.assertMultiLineEqual(str(message), m.TEXT_FORMAT_MESSAGE) + self.assertMultiLineEqual( + text_format.MessageToString(message), m.TEXT_FORMAT_MESSAGE + ) def test_text_format_merge(self): message = text_format.Merge(m.TEXT_FORMAT_MESSAGE, m.make_test_message()) - self.assertMultiLineEqual(str(message), m.TEXT_FORMAT_MESSAGE) + self.assertMultiLineEqual( + text_format.MessageToString(message), m.TEXT_FORMAT_MESSAGE + ) def test_proto_2_equal(self): self.assertProtoEqual(m.TEXT_FORMAT_MESSAGE,