Make `addFailure` and `addError` unittest2 compatible.