def test_jit_bails_nested_attribute(): class DynamicSchema(Schema): foo = fields.String(attribute='foo.bar') marshal_method = generate_marshall_method(DynamicSchema()) assert marshal_method is None