Tres Seaver wrote:
Ron Adam wrote:
Nick Coghlan wrote:

The essence of the function remains unchanged - you're still asserting that a particular exception is raised. Returning the actual exception object that was caught is merely a convenience that makes a lot of sense.
I'm not sure I understand...

If "a particular exception is raised", every thing is good and there is no error to report. ie... the code being tested did the right thing.

I *think* that in this case the propoent wants to be able to make
further assertions about the raised exception (e.g., to test its message).

Exactly.

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to