EDIT: switched to a better example, and clarified why this is a real problem.
I\'d like to write unit tests in Python that continue executing when an assertion fails
What you'll probably want to do is derive unittest.TestCase
since that's the class that throws when an assertion fails. You will have to re-architect your TestCase
to not throw (maybe keep a list of failures instead). Re-architecting stuff can cause other issues that you would have to resolve. For example you may end up needing to derive TestSuite
to make changes in support of the changes made to your TestCase
.