From c4c228fd7c7056ca4dc69391e16cc1832f9738a8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 21 Nov 2009 08:38:26 -0500 Subject: Increase templite test coverage, and use the new branch awesomeness when coverage testing ourselves. --- coverage/templite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coverage') diff --git a/coverage/templite.py b/coverage/templite.py index 22c93a9e..64dc1232 100644 --- a/coverage/templite.py +++ b/coverage/templite.py @@ -80,7 +80,7 @@ class Templite(object): ops = ops_stack.pop() assert ops[-1][0] == words[0][3:] else: - raise Exception("Don't understand tag %r" % words) + raise SyntaxError("Don't understand tag %r" % words) else: ops.append(('lit', tok)) @@ -138,7 +138,7 @@ class _TempliteEngine(object): self.context[var] = val self.execute(body) else: - raise Exception("TempliteEngine doesn't grok op %r" % op) + raise AssertionError("TempliteEngine doesn't grok op %r" % op) def evaluate(self, expr): """Evaluate an expression. -- cgit v1.2.1