Commits

Armin Rigo committed 74972a6

Fix for the previous test.

  • Participants
  • Parent commits 1b0b88c

Comments (0)

Files changed (1)

pypy/interpreter/typedef.py

         Delete the value of the slot 'member' from the given 'obj'."""
         self = member
         self.typecheck(space, w_obj)
+        w_oldresult = w_obj.getslotvalue(self.index)
+        if w_oldresult is None:
+            raise OperationError(space.w_AttributeError,
+                                 space.wrap(self.name)) # XXX better message
         w_obj.setslotvalue(self.index, None)
 
 Member.typedef = TypeDef(