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

add assert that fails for an app-level typedef

branch : missing-tp_new
parent fb70b1ac5216
......@@ -247,6 +247,9 @@ def update_all_slots(space, w_type, pto):
# coming from a parent C type.
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:
w_descr = w_type.lookup(method_name)
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