[TIP] REG: Exception raised in a Test Case

Bruno Oliveira nicoddemus at gmail.com
Fri Feb 17 04:39:03 PST 2017


I suspect pytest_exception_interact will not be called for TestCase
subclasses (unittest style), only for normal test functions/methods (but I
might be wrong).

pytest_runtest_protocol is one option if you want to analyze the report
after a test has been executed.

Can you provide some example code which illustrates what you are trying to


On Fri, Feb 17, 2017 at 7:37 AM arun kali raja <arunsep886 at gmail.com> wrote:


Say i have a TestCase that doesnt assert when an exception is raised in
certain cases... The Testcase execution will stop when ever the exception
is raised.

More information about the testing-in-python mailing list