Message89351
Guido's comment is out of date. The assertRaises(exception) already
returns something: A context manager.
If we don't want to return the object, how about retainig it in the
context manager, then?
It is very awkward otherwise to make any kinds of assertions on the thrown
exceptions. Using the Regexp variant is rather half-assed. |
|
Date |
User |
Action |
Args |
2009-06-14 16:39:48 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, michael.foord |
2009-06-14 16:39:48 | kristjan.jonsson | set | messageid: <1244997588.09.0.629297464793.issue6275@psf.upfronthosting.co.za> |
2009-06-14 16:39:46 | kristjan.jonsson | link | issue6275 messages |
2009-06-14 16:39:46 | kristjan.jonsson | create | |
|