'A hacky way to filter out things that we don\'t care about.'

def _filter_warnings(self, err_list):

    res = []
    for err in err_list:
        for ignore in self._to_ignore:
            if ignore.search(err):
                break
        else:
            res.append(err)
    return res
