Lines Matching refs:exc
59 exc = getattr(builtins, exc_name)
67 self.assertTrue(issubclass(exc, superclasses[-1][1]),
68 "%s is not a subclass of %s" % (exc.__name__,
71 self.verify_instance_interface(exc())
76 last_exc = exc
92 exc = Exception(arg)
93 results = ([len(exc.args), 1], [exc.args[0], arg],
94 [str(exc), str(arg)],
95 [repr(exc), '%s(%r)' % (exc.__class__.__name__, arg)])
102 exc = Exception(*args)
103 results = ([len(exc.args), arg_count], [exc.args, args],
104 [str(exc), str(args)],
105 [repr(exc), exc.__class__.__name__ + repr(exc.args)])
110 exc = Exception()
111 results = ([len(exc.args), 0], [exc.args, tuple()],
112 [str(exc), ''],
113 [repr(exc), exc.__class__.__name__ + '()'])