Fixed FieldDescriptor test.
diff --git a/python/descriptor_pool.c b/python/descriptor_pool.c
index 1b0d325..b27539b 100644
--- a/python/descriptor_pool.c
+++ b/python/descriptor_pool.c
@@ -406,6 +406,11 @@
if (child) {
const upb_MessageDef* parent =
upb_DefPool_FindMessageByNameWithSize(self->symtab, name, parent_size);
+ if (parent == NULL && self->db) {
+ if (!PyUpb_DescriptorPool_TryLoadSymbol(self, arg)) return NULL;
+ parent = upb_DefPool_FindMessageByNameWithSize(self->symtab, name,
+ parent_size);
+ }
if (parent) {
f = upb_MessageDef_FindFieldByName(parent, child);
}