That would partially solve this problem (it&#x27;s far rarer to see bare excepts or `except BaseException`), but could cause others.  The question there should be what is (or should be) intended when someone says `except Exception` - it&#x27;s not clear to me whether that should or should not include AssertionError.<p>A more direct solution might be to have a means of storing off every assertion failure into a (clearable) list.  The test harness could then check that list at the end of each test.  If a particular test should succeed after triggering an assertion failure, it can check the list to make sure it triggered exactly the expected failures and then clear it.