Home | History | Annotate | Download | only in test

Lines Matching refs:exception

58     "raise Exception, 'string'",
60 "try:\n pass\nexcept Exception:\n pass",
331 # node raises exception when not given enough arguments
333 # node raises exception when given too many arguments
335 # node raises exception when not given enough arguments
337 # node raises exception when given too many arguments
376 self.assertIn("identifier must be of type str", str(cm.exception))
383 self.assertIn("string must be of type str or uni", str(cm.exception))
528 ('Module', [('Raise', (1, 0), ('Name', (1, 6), 'Exception', ('Load',)), ('Str', (1, 17), 'string'), None)]),
529 ('Module', [('TryExcept', (1, 0), [('Pass', (2, 2))], [('ExceptHandler', (3, 0), ('Name', (3, 7), 'Exception', ('Load',)), None, [('Pass', (4, 2))])], [])]),