Skip to content

Commit 6c081a7

Browse files
anandoleecopybara-github
authored andcommitted
internal change for protobuf
PiperOrigin-RevId: 573332204
1 parent 0ffef4a commit 6c081a7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pybind11_protobuf/tests/message_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,15 @@ def test_text_format_to_string(self):
436436

437437
def test_text_format_parse(self):
438438
message = text_format.Parse(m.TEXT_FORMAT_MESSAGE, m.make_test_message())
439-
self.assertMultiLineEqual(str(message), m.TEXT_FORMAT_MESSAGE)
439+
self.assertMultiLineEqual(
440+
text_format.MessageToString(message), m.TEXT_FORMAT_MESSAGE
441+
)
440442

441443
def test_text_format_merge(self):
442444
message = text_format.Merge(m.TEXT_FORMAT_MESSAGE, m.make_test_message())
443-
self.assertMultiLineEqual(str(message), m.TEXT_FORMAT_MESSAGE)
445+
self.assertMultiLineEqual(
446+
text_format.MessageToString(message), m.TEXT_FORMAT_MESSAGE
447+
)
444448

445449
def test_proto_2_equal(self):
446450
self.assertProtoEqual(m.TEXT_FORMAT_MESSAGE,

0 commit comments

Comments
 (0)