Skip to content

Commit dde0827

Browse files
anandoleecopybara-github
authored andcommitted
Automated Code Change
PiperOrigin-RevId: 688727025
1 parent bbf7f1d commit dde0827

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pybind11_protobuf/tests/pass_by_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ def test_py_proto_check(self, check_method):
113113
@parameterized.named_parameters(get_pass_by_params())
114114
def test_pool_proto_check(self, check_method):
115115
pool = descriptor_pool.Default()
116-
factory = message_factory.MessageFactory(pool)
117-
prototype = factory.GetPrototype(
116+
prototype = message_factory.GetMessageClass(
118117
pool.FindMessageTypeByName('pybind11.test.IntMessage')
119118
)
120119
message = prototype(value=9)

0 commit comments

Comments
 (0)