1 parent 0ffef4a commit 6c081a7Copy full SHA for 6c081a7
1 file changed
pybind11_protobuf/tests/message_test.py
@@ -436,11 +436,15 @@ def test_text_format_to_string(self):
436
437
def test_text_format_parse(self):
438
message = text_format.Parse(m.TEXT_FORMAT_MESSAGE, m.make_test_message())
439
- self.assertMultiLineEqual(str(message), m.TEXT_FORMAT_MESSAGE)
+ self.assertMultiLineEqual(
440
+ text_format.MessageToString(message), m.TEXT_FORMAT_MESSAGE
441
+ )
442
443
def test_text_format_merge(self):
444
message = text_format.Merge(m.TEXT_FORMAT_MESSAGE, m.make_test_message())
445
446
447
448
449
def test_proto_2_equal(self):
450
self.assertProtoEqual(m.TEXT_FORMAT_MESSAGE,
0 commit comments