verifyObject masks exceptions raised while accessing attributes

Bug #259183 reported by Māris Fogels
2
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix
Undecided
Unassigned
zope.interface
Fix Released
Undecided
Unassigned

Bug Description

The verifyObject() and verifyClass() functions in zope.interface.verify use the Python hasattr() function. As a result verifyObject() will mask any exceptions raised by attributes or Python properties, returning a BrokenImplementationError instead of re-raising the original exception.

I've attached a quick doctest showing the problem.

Revision history for this message
Māris Fogels (mars) wrote :
Tres Seaver (tseaver)
Changed in zope3:
status: New → Won't Fix
Revision history for this message
Alex Smith (ajsmith) wrote :

This was fixed in zope.interface 3.5.1.

Māris Fogels (mars)
Changed in zope.interface:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.