Called when the test case test fails or errors, but was marked with the expectedFailure() decorator.
addExpectedFailure(test, err)