Mocker should define its own assertRaises that return the exception caught

Bug #299930 reported by Thomas Herve
2
Affects Status Importance Assigned to Milestone
Mocker
Fix Released
Undecided
Thomas Herve

Bug Description

The stdlib assertRaises method doesn't give back the exception caught. It's really handy to get it back, for checking attributes of the exception for example.

trial does this, for example.

Tags: review

Related branches

Thomas Herve (therve)
Changed in mocker:
assignee: nobody → therve
status: New → In Progress
Revision history for this message
Thomas Herve (therve) wrote :

This is ready to review in the attached branch.

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Thanks Thomas!

This has been merged in revision 64, and will be out in the next release in a moment.

Changed in mocker:
status: In Progress → Fix Committed
Changed in mocker:
status: Fix Committed → 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.