This instance will be upgraded to Heptapod 0.27.1 on 2021-12-02 at 15:00 UTC+1 (a few minutes of down time)

Commit 0fc19200 authored by Matti Picus's avatar Matti Picus
Browse files

add assert that fails for an app-level typedef

--HG--
branch : missing-tp_new
parent fb70b1ac5216
...@@ -247,6 +247,9 @@ def update_all_slots(space, w_type, pto): ...@@ -247,6 +247,9 @@ def update_all_slots(space, w_type, pto):
# coming from a parent C type. # coming from a parent C type.
typedef = w_type.layout.typedef typedef = w_type.layout.typedef
if w_type is not space.w_object:
# XXX fix, to prevent problems with slot lookups
assert typedef is not space.w_object.layout.typedef
for method_name, slot_name, slot_names, slot_func in slotdefs_for_tp_slots: for method_name, slot_name, slot_names, slot_func in slotdefs_for_tp_slots:
w_descr = w_type.lookup(method_name) w_descr = w_type.lookup(method_name)
if w_descr is None: if w_descr is None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment