Lines Matching refs:exc
73 exc = getattr(__builtin__, exc_name)
81 self.assertTrue(issubclass(exc, superclasses[-1][1]),
82 "%s is not a subclass of %s" % (exc.__name__,
85 self.verify_instance_interface(exc())
90 last_exc = exc
108 exc = Exception(arg)
109 results = ([len(exc.args), 1], [exc.args[0], arg], [exc.message, arg],
110 [str(exc), str(arg)], [unicode(exc), unicode(arg)],
111 [repr(exc), exc.__class__.__name__ + repr(exc.args)],
112 [exc[0], arg])
120 exc = Exception(*args)
121 results = ([len(exc.args), arg_count], [exc.args, args],
122 [exc.message, ''], [str(exc), str(args)],
123 [unicode(exc), unicode(args)],
124 [repr(exc), exc.__class__.__name__ + repr(exc.args)],
125 [exc[-1], args[-1]])
131 exc = Exception()
132 results = ([len(exc.args), 0], [exc.args, tuple()],
133 [exc.message, ''],
134 [str(exc), ''], [unicode(exc), u''],
135 [repr(exc), exc.__class__.__name__ + '()'], [True, True])