To clarify my "problem", I just thought that assertRaises if used as context manager should behave as following:
- keep going if the exception declared is raised
- re-raise an error even if catched after the declared exception was catched

I was also confused by the doc a bit:
"Test that an exception is raised when /callable/ is called with any positional or keyword arguments that are also passed to assertRaises() <http://docs.python.org/library/unittest.html#unittest.TestCase.assertRaises>. The test passes if /exception/ is raised, is an error if another exception is raised, or fails if no exception is raised"

which speaks about when it's not used as a context manager..

I understand why it's not possible and it's not a big issue though..
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to