def raise_keyb_from_match(): if sys.version_info > (2, 5): matcher = Raises(MatchesException(Exception)) else: # On Python 2.4 KeyboardInterrupt is a StandardError subclass # but should propogate from less generic exception matchers matcher = Raises(MatchesException(EnvironmentError)) matcher.match(self.raiser)
def raise_keyb_from_match(): matcher = Raises(MatchesException(Exception)) matcher.match(self.raiser)
def raise_keyb_from_match(): matcher = Raises() matcher.match(self.raiser)