980
980
return _AssertRaisesContext(expected_exception, self, expected_regexp)
982
982
callable_obj(*args, **kwargs)
984
984
if isinstance(expected_regexp, basestring):
985
985
expected_regexp = re.compile(expected_regexp)
986
986
if not expected_regexp.search(str(exc_value)):